2024-08-04 21:38:41 +00:00
|
|
|
@extends('layouts.writer')
|
|
|
|
|
|
|
|
|
|
@section('title', 'Writer Dashboard')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<div>
|
|
|
|
|
<h1>Writer's Dashboard</h1>
|
2025-10-12 04:36:10 +00:00
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
<h3>All Articles</h3>
|
|
|
|
|
|
|
|
|
|
<table id="article-list-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>ID</th>
|
|
|
|
|
<th>Slug</th>
|
|
|
|
|
<th>Title</th>
|
|
|
|
|
<th>Subhead</th>
|
|
|
|
|
<th>Author</th>
|
|
|
|
|
<th>Published At</th>
|
|
|
|
|
<th>Last Updated</th>
|
|
|
|
|
<th>First Created</th>
|
|
|
|
|
<th>Actions</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@forelse($articles as $article)
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ $article->id }}</td>
|
|
|
|
|
<td>{{ $article?->slug ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->title ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->subtitle ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->author?->display_name ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->published_at ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->updated_at ?? '-' }}</td>
|
|
|
|
|
<td>{{ $article?->created_at ?? '-' }}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{--
|
|
|
|
|
<a href="{{ route() }}">
|
|
|
|
|
<button type="button">Edit</button>
|
|
|
|
|
</a>
|
|
|
|
|
--}}
|
|
|
|
|
<a href="{{}}">
|
|
|
|
|
<button type="button">
|
|
|
|
|
Unpublish
|
|
|
|
|
</button>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
@empty
|
|
|
|
|
<tr><td>No Articles</td></tr>
|
|
|
|
|
@endforelse
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2024-08-04 21:38:41 +00:00
|
|
|
</div>
|
|
|
|
|
@endsection
|