41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?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'));
|
|
});
|
|
|
|
// 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'));
|
|
}); |