invoiceninja/routes/breadcrumbs.php
David Bomba 43e57d0117
Fixes for self-update (#3514)
* minor fix for payment notifications

* styleci

* Limit Self updating to self hosters only
:

* Fixes for designs

* Minor fixes for self-update
2020-03-21 16:37:30 +11:00

26 lines
735 B
PHP

<?php
// Dashboard
Breadcrumbs::for('dashboard', function ($trail) {
$trail->push(trans('texts.dashboard'), route('dashboard.index'));
});
// Dashboard > Client
Breadcrumbs::for('clients', function ($trail) {
$trail->parent('dashboard');
$trail->push(trans('texts.clients'), route('clients.index'));
});
Breadcrumbs::for('clients.show', function ($trail, $client) {
$trail->parent('clients');
$trail->push($client->name, route('clients.show', $client));
});
Breadcrumbs::for('clients.edit', function ($trail, $client) {
$trail->parent('clients');
$trail->push($client->name, route('clients.edit', $client));
});
Breadcrumbs::for('clients.create', function ($trail) {
$trail->parent('clients');
});