2019-09-11 14:33:07 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: merdan
|
|
|
|
|
* Date: 9/11/2019
|
|
|
|
|
* Time: 15:07
|
|
|
|
|
*/
|
|
|
|
|
// Home
|
|
|
|
|
Breadcrumbs::for('home', function ($trail) {
|
2020-02-25 17:03:45 +00:00
|
|
|
$trail->push(trans('ClientSide.home'), route('home'));
|
2019-09-14 12:27:41 +00:00
|
|
|
});
|
|
|
|
|
|
2019-09-16 13:30:51 +00:00
|
|
|
Breadcrumbs::for('category', function ($trail, $category){
|
2019-09-14 12:27:41 +00:00
|
|
|
$trail->parent('home');
|
2020-04-02 07:35:45 +00:00
|
|
|
$trail->push($category->title?? trans('ClientSide.results'), $category->url ?? '#');
|
|
|
|
|
});
|
2019-09-16 13:30:51 +00:00
|
|
|
|
2020-04-02 07:35:45 +00:00
|
|
|
Breadcrumbs::for('sub_category', function ($trail, $category){
|
|
|
|
|
$trail->parent('category',$category->parent);
|
|
|
|
|
$trail->push($category->title?? trans('ClientSide.results'), $category->url ?? '#');
|
2019-09-14 12:27:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Breadcrumbs::for('event',function($trail, $event){
|
2020-03-17 07:14:09 +00:00
|
|
|
if($event->subCategory)
|
2020-04-02 07:35:45 +00:00
|
|
|
$trail->parent('sub_category', $event->subCategory);
|
2020-03-17 07:14:09 +00:00
|
|
|
else
|
|
|
|
|
$trail->parent('category', $event->mainCategory);
|
2020-04-02 07:35:45 +00:00
|
|
|
$trail->push($event->title?? trans('ClientSide.results'),$event->event_url ?? '#');
|
2019-09-16 12:55:29 +00:00
|
|
|
});
|
|
|
|
|
|
2019-11-02 10:32:23 +00:00
|
|
|
Breadcrumbs::for('seats',function ($trail,$event){
|
|
|
|
|
$trail->parent('event',$event);
|
2020-02-12 11:00:54 +00:00
|
|
|
$trail->push(trans('ClientSide.checkout'));//'Pokupka'
|
2019-11-02 10:32:23 +00:00
|
|
|
});
|
|
|
|
|
|
2019-09-16 12:55:29 +00:00
|
|
|
Breadcrumbs::for('search',function($trail){
|
|
|
|
|
$trail->parent('home');
|
2020-02-12 11:00:54 +00:00
|
|
|
$trail->push(trans('ClientSide.results'));//'Результат поиска'
|
2019-09-16 12:55:29 +00:00
|
|
|
});
|
|
|
|
|
|
2020-02-18 12:13:32 +00:00
|
|
|
Breadcrumbs::for('add_event',function($trail){
|
|
|
|
|
$trail->parent('home');
|
|
|
|
|
$trail->push('+ ДОБАВИТЬ СОБЫТИЕ');
|
|
|
|
|
});
|
2020-02-25 15:18:19 +00:00
|
|
|
|
|
|
|
|
Breadcrumbs::for('about',function($trail,$title){
|
|
|
|
|
$trail->parent('home');
|
2020-03-28 15:17:30 +00:00
|
|
|
$trail->push($title??'#title_transation');
|
2020-02-25 15:18:19 +00:00
|
|
|
});
|