fleetCatalogue/routes/breadcrumbs.php

41 lines
1.1 KiB
PHP
Raw Permalink Normal View History

<?php
// routes/breadcrumbs.php
use App\Models\Games\Game;
use App\Models\YuGiOh\YuGiOhCard;
use Diglactic\Breadcrumbs\Breadcrumbs;
use Diglactic\Breadcrumbs\Generator as BreadcrumbTrail;
// Home
Breadcrumbs::for('home', function (BreadcrumbTrail $trail) {
$trail->push(__('Home'), route('home'));
});
// Home > 404
Breadcrumbs::for('404', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push(__('404 | Not found'), route('home'));
});
2023-10-15 15:29:16 +00:00
// Home > Keybinds
Breadcrumbs::for('keybinds', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push(__('Keybinds'), route('keybinds'));
});
// Home > Vehicles
Breadcrumbs::for('vehicles', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push(__('Vehicles'), route('vehicles'));
});
// Home > Login
Breadcrumbs::for('login', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push(__('Login'), route('login'));
});
// Home > Dashboard
Breadcrumbs::for('dashboard', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push(__('Dashboard'), route('dashboard'));
});