word-salad/resources/views/writer/dashboard.blade.php

59 lines
1.6 KiB
PHP
Raw Normal View History

@extends('layouts.writer')
@section('title', 'Writer Dashboard')
@section('content')
<div>
<h1>Writer's Dashboard</h1>
<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>
</div>
@endsection