|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -use App\Domains\Companie\Http\Controllers\Frontend\JobsController; |
4 |
| -use App\Domains\Companie\Models\CompanieJobs; |
5 |
| -use Tabuna\Breadcrumbs\Trail; |
| 3 | +// use App\Domains\Companie\Http\Controllers\Frontend\JobsController; |
| 4 | +// use App\Domains\Companie\Models\CompanieJobs; |
| 5 | +// use Tabuna\Breadcrumbs\Trail; |
6 | 6 |
|
7 | 7 | /*
|
8 | 8 | * Jobs Controllers
|
9 | 9 | * All route names are prefixed with 'frontend.jobs.'.
|
10 | 10 | */
|
11 |
| -Route::group([ |
12 |
| - 'prefix' => 'jobs', |
13 |
| - 'as' => 'jobs.', |
14 |
| - 'namespace' => 'Jobs', |
15 |
| -], function () { |
16 |
| - Route::get('/', [JobsController::class, 'index']) |
17 |
| - ->name('index') |
18 |
| - ->breadcrumbs(function (Trail $trail) { |
19 |
| - $trail->parent('frontend.index') |
20 |
| - ->push(__('Init.Engineer Jobs'), route('frontend.jobs.index')); |
21 |
| - }); |
22 |
| - |
23 |
| - Route::group([ |
24 |
| - 'prefix' => '{job}', |
25 |
| - ], function () { |
26 |
| - Route::get('/', [JobsController::class, 'show']) |
27 |
| - ->name('show') |
28 |
| - ->breadcrumbs(function (Trail $trail, CompanieJobs $job) { |
29 |
| - $trail->parent('frontend.jobs.index') |
30 |
| - ->push($job->companie()->name . ' - ' . $job->name, route('frontend.jobs.show', $job)); |
31 |
| - }); |
32 |
| - }); |
33 |
| -}); |
| 11 | +// Route::group([ |
| 12 | +// 'prefix' => 'jobs', |
| 13 | +// 'as' => 'jobs.', |
| 14 | +// 'namespace' => 'Jobs', |
| 15 | +// ], function () { |
| 16 | +// Route::get('/', [JobsController::class, 'index']) |
| 17 | +// ->name('index') |
| 18 | +// ->breadcrumbs(function (Trail $trail) { |
| 19 | +// $trail->parent('frontend.index') |
| 20 | +// ->push(__('Init.Engineer Jobs'), route('frontend.jobs.index')); |
| 21 | +// }); |
| 22 | +// Route::group([ |
| 23 | +// 'prefix' => '{job}', |
| 24 | +// ], function () { |
| 25 | +// Route::get('/', [JobsController::class, 'show']) |
| 26 | +// ->name('show') |
| 27 | +// ->breadcrumbs(function (Trail $trail, CompanieJobs $job) { |
| 28 | +// $trail->parent('frontend.jobs.index') |
| 29 | +// ->push($job->companie()->name . ' - ' . $job->name, route('frontend.jobs.show', $job)); |
| 30 | +// }); |
| 31 | +// }); |
| 32 | +// }); |
0 commit comments