ldc-groupe/routes/breadcrumbs-front.php
2025-08-25 13:30:25 +02:00

65 lines
1.8 KiB
PHP

<?php
use Diglactic\Breadcrumbs\Breadcrumbs;
use Diglactic\Breadcrumbs\Generator;
use Illuminate\Support\Str;
// * HOMEPAGE
Breadcrumbs::for('front.homepage', function (Generator $trail) {
$trail->push(
Str::ucfirst(trans('front.homepage')),
route('front.homepage')
);
});
// * ENGAGEMENTS PAGES
Breadcrumbs::for('front.nos-engagements', function (Generator $trail) {
$trail->parent('front.homepage');
$trail->push(
Str::of(trans('front.nos-engagements'))->ucfirst()->plural(),
route('front.nos-engagements')
);
});
Breadcrumbs::for('front.elever-durablement', function (Generator $trail) {
$trail->parent('front.nos-engagements');
$trail->push(
Str::of(trans('front.elever-durablement'))->ucfirst(),
route('front.elever-durablement')
);
});
Breadcrumbs::for('front.mieux-vivre-ensemble', function (Generator $trail) {
$trail->parent('front.nos-engagements');
$trail->push(
Str::of(trans('front.mieux-vivre-ensemble'))->ucfirst(),
route('front.mieux-vivre-ensemble')
);
});
Breadcrumbs::for('front.respecter-la-terre', function (Generator $trail) {
$trail->parent('front.nos-engagements');
$trail->push(
Str::of(trans('front.respecter-la-terre'))->ucfirst(),
route('front.respecter-la-terre')
);
});
// KNOW US PAGES
Breadcrumbs::for('front.nous-connaitre', function (Generator $trail) {
$trail->parent('front.homepage');
$trail->push(
Str::of(trans('front.nous-connaitre'))->ucfirst(),
route('front.nous-connaitre')
);
});
// * OUR BRANDS PAGE
Breadcrumbs::for('front.nos-marques', function (Generator $trail) {
$trail->parent('front.homepage');
$trail->push(
Str::of(trans('front.nos-marques'))->ucfirst(),
route('front.nos-marques')
);
});