Changes to UI
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
// this import. This is nice for IDE syntax and refactoring.
|
||||
use App\Models\Client;
|
||||
use App\Models\ClientCase;
|
||||
use App\Models\Segment;
|
||||
use Diglactic\Breadcrumbs\Breadcrumbs;
|
||||
// This import is also not required, and you could replace `BreadcrumbTrail $trail`
|
||||
// with `$trail`. This is nice for IDE type checking and completion.
|
||||
@@ -88,3 +89,15 @@
|
||||
$trail->parent('settings');
|
||||
$trail->push('Plačila', route('settings.payment.edit'));
|
||||
});
|
||||
|
||||
// Dashboard > Segments
|
||||
Breadcrumbs::for('segments.index', function (BreadcrumbTrail $trail) {
|
||||
$trail->parent('dashboard');
|
||||
$trail->push('Segmenti', route('segments.index'));
|
||||
});
|
||||
|
||||
// Dashboard > Segments > [Segment]
|
||||
Breadcrumbs::for('segments.show', function (BreadcrumbTrail $trail, Segment $segment) {
|
||||
$trail->parent('segments.index');
|
||||
$trail->push($segment->name, route('segments.show', $segment));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user