add new roles kpo
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="bg-gray-900 opacity-50 hidden fixed inset-0 z-10" id="sidebarBackdrop"></div>
|
||||
<div id="main-content" class="h-full w-full bg-gray-50 relative overflow-y-auto">
|
||||
<main>
|
||||
|
||||
<div class="pt-6 px-4">
|
||||
|
||||
<breadcrumb :items="[{ 'title' : 'Dashboard', 'icon' : 'fas fa-columns' }]"></breadcrumb>
|
||||
|
||||
|
||||
<dashboard-component kodcaw="{{ Auth::user()->cawangan }}"></dashboard-component>
|
||||
</div>
|
||||
</main>
|
||||
@include('layouts.footer')
|
||||
@endsection
|
||||
@@ -155,7 +155,7 @@
|
||||
</cawangan-component>
|
||||
<div class="mx-auto">
|
||||
<a class="text-yellow-200 rounded bg-gray-400 px-6 py-3 font-bold mr-4 uppercase sm:invisible lg:visible xl:visible">
|
||||
{{Auth::user()->role_asal}} : {{Auth::user()->name}}
|
||||
{{Auth::user()->roles}} : {{Auth::user()->name}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -321,6 +321,46 @@
|
||||
</div>
|
||||
</li>
|
||||
</a> --}}
|
||||
|
||||
@elseif(Auth::user()->roles == 'kpo')
|
||||
<a href="{{ route('home') }}"
|
||||
class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
|
||||
<li
|
||||
class="flex w-full justify-between text-gray-500 hover:text-gray-500 cursor-pointer items-center">
|
||||
<div class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid"
|
||||
width="18" height="18" viewBox="0 0 24 24" stroke-width="1.5"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z"></path>
|
||||
<rect x="4" y="4" width="6" height="6" rx="1">
|
||||
</rect>
|
||||
<rect x="14" y="4" width="6" height="6" rx="1">
|
||||
</rect>
|
||||
<rect x="4" y="14" width="6" height="6" rx="1">
|
||||
</rect>
|
||||
<rect x="14" y="14" width="6" height="6" rx="1">
|
||||
</rect>
|
||||
</svg>
|
||||
<span class="text-sm ml-2 text-lg">Dashboard</span>
|
||||
</div>
|
||||
</li>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="{{ route('akaun.home') }}"
|
||||
class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
|
||||
<li
|
||||
class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
|
||||
<div class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
|
||||
viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
|
||||
</svg>
|
||||
<span class="text-sm ml-2 text-lg">Laporan</span>
|
||||
</div>
|
||||
</li>
|
||||
</a>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user