Update Page Title and Toolbar

This commit is contained in:
daeng.deni@dharma.or.id 2023-06-06 20:40:20 +07:00
parent 445e070738
commit a6a6857bd5
2 changed files with 10 additions and 10 deletions

View File

@ -6,12 +6,12 @@
<!--begin::Title--> <!--begin::Title-->
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0 text-capitalize"> <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(count($route) > 1)
@if($route[1] !== 'index' && $route[1] !== 'users') @if($route[1] !== 'index' && $route[1] !== 'users')
{{ $route[1] }} {{ $route[1] }}
@endif @endif
@endif @endif
{{ ucfirst(str_replace('-',' ',$route[0])) }}
</h1> </h1>
<!--end::Title--> <!--end::Title-->
<!--begin::Breadcrumb--> <!--begin::Breadcrumb-->
@ -38,7 +38,7 @@
</li> </li>
<!--end::Item--> <!--end::Item-->
<!--begin::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--> <!--end::Item-->
@else @else
<!--begin::Item--> <!--begin::Item-->

View File

@ -9,12 +9,12 @@
@if(isset($route[1]) && $route[1] == 'index') @if(isset($route[1]) && $route[1] == 'index')
@if($route[0]=='document')<!--begin::Actions--> @if($route[0]=='document')<!--begin::Actions-->
<div class="d-flex align-items-center gap-2 gap-lg-3"> <div class="d-flex align-items-center gap-2 gap-lg-3">
<!--begin::Primary button--> <!--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> <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--> <!--end::Primary button-->
</div> </div>
<!--end::Actions--> <!--end::Actions-->
@else @else
<!--begin::Actions--> <!--begin::Actions-->
<div class="d-flex align-items-center gap-2 gap-lg-3"> <div class="d-flex align-items-center gap-2 gap-lg-3">
@ -24,12 +24,12 @@
</div> </div>
<!--end::Actions--> <!--end::Actions-->
@endif @endif
@elseif(isset($route[2]) && $route[2] == 'index' && $route[0] == 'user') @elseif(isset($route[2]) && $route[2] == 'index')
@if($route[1]!=='users') @if($route[1]!=='users')
<!--begin::Actions--> <!--begin::Actions-->
<div class="d-flex align-items-center gap-2 gap-lg-3"> <div class="d-flex align-items-center gap-2 gap-lg-3">
<!--begin::Primary button--> <!--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--> <!--end::Primary button-->
</div> </div>
<!--end::Actions--> <!--end::Actions-->