mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Update page title dynamically
This commit is contained in:
parent
4daa8e7c63
commit
37d792352d
|
@ -2,7 +2,13 @@
|
||||||
|
|
||||||
{{-- Page Title --}}
|
{{-- Page Title --}}
|
||||||
@section('title')
|
@section('title')
|
||||||
{{ trans('general.custom_report') }}
|
@if (request()->routeIs('report-templates.edit'))
|
||||||
|
{{ trans('general.update') }} {{ $template->name }}
|
||||||
|
@elseif(request()->routeIs('report-templates.show'))
|
||||||
|
{{ trans('general.custom_report') }}: {{ $template->name }}
|
||||||
|
@else
|
||||||
|
{{ trans('general.custom_report') }}
|
||||||
|
@endif
|
||||||
@parent
|
@parent
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@ -11,7 +17,7 @@
|
||||||
<a href="{{ route('report-templates.show', $template) }}" class="btn btn-primary pull-right">
|
<a href="{{ route('report-templates.show', $template) }}" class="btn btn-primary pull-right">
|
||||||
{{ trans('general.back') }}
|
{{ trans('general.back') }}
|
||||||
</a>
|
</a>
|
||||||
@elseif(request()->routeIs('report-templates.show'))
|
@elseif (request()->routeIs('report-templates.show'))
|
||||||
<a href="{{ route('reports/custom') }}" class="btn btn-primary pull-right">
|
<a href="{{ route('reports/custom') }}" class="btn btn-primary pull-right">
|
||||||
{{ trans('general.back') }}
|
{{ trans('general.back') }}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue