ldc-groupe/routes/breadcrumbs-front.php
karl.muller d799a8265b Merge branch 'issue-50' into 'migrate-front-files'
feat: ✨ add bien nourrir page

See merge request ldc-web/projets/ldc!35
2025-08-25 14:24:43 +00:00

90 lines
2.5 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')
);
});
Breadcrumbs::for('front.bien-nourrir', function (Generator $trail) {
$trail->parent('front.nos-engagements');
$trail->push(
Str::of(trans('front.bien-nourrir'))->ucfirst(),
route('front.bien-nourrir')
);
});
// 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')
);
});
// * JOIN US
Breadcrumbs::for('front.nous-rejoindre', function (Generator $trail) {
$trail->parent('front.homepage');
$trail->push(
Str::of(trans('front.nous-rejoindre'))->ucfirst(),
route('front.nous-rejoindre')
);
});
// * OUR JOBS
Breadcrumbs::for('front.nos-metiers', function (Generator $trail) {
$trail->parent('front.homepage');
$trail->push(
Str::of(trans('front.nos-metiers'))->ucfirst(),
route('front.nos-metiers')
);
});