Update page title dynamically

This commit is contained in:
Marcus Moore 2024-11-06 12:11:35 -08:00
parent 4daa8e7c63
commit 37d792352d
No known key found for this signature in database

View file

@ -2,7 +2,13 @@
{{-- Page Title --}}
@section('title')
@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
@stop