51 lines
1.3 KiB
PHP
51 lines
1.3 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')
|
|
);
|
|
});
|
|
|
|
|
|
|
|
// 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')
|
|
);
|
|
});
|