@php $user_role = Auth::user()->role; $uid = Auth::user()->id; @endphp {{-- --}} {{-- all roles --}} @if ($user_role === \App\Models\Users::ROLE_ADMIN || $user_role === \App\Models\Users::ROLE_VENDOR || $user_role === \App\Models\Users::ROLE_CLIENT_ADMIN || $user_role === \App\Models\Users::ROLE_SPECIAL_TRACKING) Dashboard @endif @if ($user_role === \App\Models\Users::ROLE_VENDOR) {{-- Transaction --}} Transaction @endif @if ($user_role === \App\Models\Users::ROLE_VENDOR) Zone @endif @if ($user_role === \App\Models\Users::ROLE_VENDOR) Konfigurasi @endif {{-- only admin --}} @if ($user_role === \App\Models\Users::ROLE_ADMIN) Job Company Zone Configuration {{-- Harga Uang Saku --}} {{-- Asuransi --}} Tipe Kendaraan Master Devices Logs Gps {{-- additional item --}} {{-- Menu Permissions --}} {{-- Tipe Logbook --}} {{-- Master Logbook --}} @endif {{-- only admin and vendor --}} @if ($user_role === \App\Models\Users::ROLE_ADMIN || $user_role === \App\Models\Users::ROLE_VENDOR) {{-- @if ($user_role === \App\Models\Users::ROLE_ADMIN) --}} Driver Vehicle @endif User {{-- only admin and client --}} {{-- @if ($user_role === \App\Models\Users::ROLE_ADMIN || $user_role === \App\Models\Users::ROLE_CLIENT_ADMIN) Transactions @endif --}} {{-- only client --}} @if ($user_role === \App\Models\Users::ROLE_CLIENT_ADMIN) Transaction {{-- Zone --}} @endif {{-- only checker --}} @if ($user_role === \App\Models\Users::ROLE_CHECKER) Checker @endif {{-- all roles --}} @if ($user_role === \App\Models\Users::ROLE_ADMIN || $user_role === \App\Models\Users::ROLE_VENDOR || $user_role === \App\Models\Users::ROLE_CLIENT_ADMIN) {{-- Reports --}} @endif @if ($user_role === \App\Models\Users::ROLE_FINANCE) Dashboard Ledger Balance Pembayaran Penagihan Riwayat Transfer Uang Saku Konfigurasi additional item Dana @endif Halo, {{ mb_strimwidth(Auth::user()->first_name, 0, 12, '...') }} {{-- Profil Saya --}} Profil Saya Keluar @csrf {{-- --}} @if ($user_role == \App\Models\Users::ROLE_ADMIN)
FLEET MANAGER