A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -15,7 +15,15 @@ Breadcrumbs::for('entries.show', function ( Generator $trail, string $section, \
$trail->parent('entries.index');
$trail->push($entry->title, route('entries.show', [ $section, $entry ] ) );
});
Breadcrumbs::for('entries.drafts', function ( Generator $trail ) {
$trail->parent('home');
$trail->push('Drafts', route('entries.drafts'));
});
Breadcrumbs::for('submit.index', function ( Generator $trail ) {
$trail->parent('home');
$trail->push('Submit', route('submit.index'));
});
Breadcrumbs::for('submit.create', function ( Generator $trail, string $section ) {
$trail->parent('home');
$trail->push('Submit', route('submit.create', [ $section ] ) );
@@ -24,3 +32,25 @@ Breadcrumbs::for('submit.edit', function ( Generator $trail, string $section, \A
$trail->parent('entries.show', $section, $entry);
$trail->push('Edit', route('submit.edit', [ $section, $entry ] ) );
});
Breadcrumbs::for('news.index', function ( Generator $trail ) {
$trail->parent('home');
$trail->push('News', route('news.index'));
});
Breadcrumbs::for('news.show', function ( Generator $trail, \App\Models\News $news ) {
$trail->parent('news.index');
$trail->push($news->title, route('news.show', [ $news ] ) );
});
Breadcrumbs::for('news.create', function ( Generator $trail ) {
$trail->parent('home');
$trail->push('Submit', route('news.create') );
});
Breadcrumbs::for('news.edit', function ( Generator $trail, \App\Models\News $news ) {
$trail->parent('news.show', $news);
$trail->push('Edit', route('news.edit', [ $news ] ) );
});
Breadcrumbs::for('queue.index', function ( Generator $trail ) {
$trail->parent('home');
$trail->push('Submissions Queue', route('queue.index') );
});