Update Page Title and Toolbar
This commit is contained in:
parent
445e070738
commit
a6a6857bd5
@ -6,12 +6,12 @@
|
||||
|
||||
<!--begin::Title-->
|
||||
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0 text-capitalize">
|
||||
{{ ucfirst(str_replace('-',' ',$route[0])) }}
|
||||
@if(count($route) > 1)
|
||||
@if($route[1] !== 'index' && $route[1] !== 'users')
|
||||
{{ $route[1] }}
|
||||
@endif
|
||||
@endif
|
||||
{{ ucfirst(str_replace('-',' ',$route[0])) }}
|
||||
</h1>
|
||||
<!--end::Title-->
|
||||
<!--begin::Breadcrumb-->
|
||||
@ -38,7 +38,7 @@
|
||||
</li>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<li class="breadcrumb-item text-muted text-capitalize">{{ ucfirst(str_replace('-',' ',$route[1])).' '.ucfirst(str_replace('-',' ',$route[0]))}}</li>
|
||||
<li class="breadcrumb-item text-muted text-capitalize">{{ ucfirst(str_replace('-',' ',$route[1]))}}</li>
|
||||
<!--end::Item-->
|
||||
@else
|
||||
<!--begin::Item-->
|
||||
|
@ -9,12 +9,12 @@
|
||||
|
||||
@if(isset($route[1]) && $route[1] == 'index')
|
||||
@if($route[0]=='document')<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize">Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize">Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@else
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
@ -24,12 +24,12 @@
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@endif
|
||||
@elseif(isset($route[2]) && $route[2] == 'index' && $route[0] == 'user')
|
||||
@elseif(isset($route[2]) && $route[2] == 'index')
|
||||
@if($route[1]!=='users')
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.'.$route[1].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize" data-bs-toggle="modal" data-bs-target="#kt_modal_{{ $route[0] }}_{{ $route[1] }}">Add {{ str_replace('-',' ',$route[1]) }} {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<a href="{{ route($route[0].'.'.$route[1].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize" data-bs-toggle="modal" data-bs-target="#kt_modal_{{ $route[0] }}_{{ $route[1] }}">Add {{ str_replace('-',' ',$route[1]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
|
Loading…
Reference in New Issue
Block a user