@php $this_disabled = (checkLicense() == 1 ? (cekSetupCompleted() ? '' : 'disabled') : 'disabled'); $this_properti = propertiTipe(); @endphp @if (!in_array(\Auth::user()->role, [10,40])) @endif @if (!in_array(\Auth::user()->role, [40,10])) @endif @if (in_array(\Auth::user()->role, [1,2])) @endif {{-- @if(in_array(\Auth::user()->role, [1])) @endif --}} {{-- Admin Menu --}} {{--Super Admin--}} @if(in_array(\Auth::user()->role, [1,2,6])) @endif {{-- Closing Admin Menu --}} @if(in_array(\Auth::user()->role, [1,11,12]) && hotelID()) @endif @if(in_array(\Auth::user()->role, [1,2,5,11,12]) && is_null(\Session::get('hotel_id'))) @else {{-- Room Menu --}} @if(\Auth::user()->role != 10) @if(in_array(\Auth::user()->role, [1,2, 5, 6, 50, 11,12, 30])) @endif @endif {{-- Closing Room Menu --}} {{-- Booking Menu --}} {{--Super Admin dan Admin Frontdesk--}} @if(in_array(\Auth::user()->role, [1,2, 10, 11,12,30])) @section('booking_menu') @if (in_array(env('APP_NAME'), ['Laravel', 'testHotel'])) @if (\Auth::user()->role == 1) @endif @endif @if (!in_array(\Auth::user()->role, [40,10])) @else @endif @if (!in_array(\Auth::user()->role, [40,10])) @if (in_array($this_properti, [1,2])) @endif @else @endif {{-- --}} @if (!in_array(\Auth::user()->role, [10,30])) @endif @endsection @if(\Auth::user()->role != 10) @if(in_array(\Auth::user()->role, [1,2, 11,12])) {{-- --}} @endif @else @yield('booking_menu') @endif @endif {{-- Closing Booking Menu --}} {{-- Guest Profile --}} @if (in_array(\Auth::user()->role, [1,2, 5, 6, 10, 11,12, 20, 30])) @section('guest_profile') @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12, 20, 30])) @else @endif @if(in_array(\Auth::user()->role, [1,2, 5, 6, 30])) @endif @endsection @if(\Auth::user()->role != 10) @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12])) {{-- --}} @endif @else @yield('guest_profile') @endif @endif {{-- Closing Guest Profile --}} {{-- Accounting Menu --}} @if(in_array(\Auth::user()->role, [1,2, 5, 10, 11,12, 20, 40, 30])) @section('accounting_menu') @if(in_array(\Auth::user()->role, [1,2, 5, 11,12, 20])) @if (in_array($this_properti, [1])) @endif @if (in_array($this_properti, [1,2])) @endif {{-- --}} @if (in_array($this_properti, [1])) @endif @endif @if (!in_array(\Auth::user()->role, [40])) {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endif @if(in_array(\Auth::user()->role, [1,2, 5, 10, 11,12, 20, 40, 30])) @if(in_array(\Auth::user()->role, [1,2, 5, 11,12, 20])) @if (in_array($this_properti, [1])) {{-- --}} @endif @endif @if(in_array(\Auth::user()->role, [1,2, 5, 10, 11,12, 20, 30])) {{-- --}} {{-- --}} {{-- --}} @if(\Auth::user()->role == 10) @if (in_array($this_properti, [1,2])) @endif @if (in_array(\Auth::user()->role, [10])) @endif @else @if (in_array($this_properti, [1,2])) @endif @endif @endif @if(in_array(\Auth::user()->role, [1,2, 5, 11,12, 20, 6])) @if (in_array($this_properti, [1])) @endif @endif @if(in_array(\Auth::user()->role, [1,2, 5, 11,12, 20, 40])) @if (\Auth::user()->role == 40) @else @if (in_array($this_properti, [1,2])) @endif @if (!in_array(\Auth::user()->role, [30])) @if (in_array($this_properti, [1])) {{-- --}} @endif @endif @endif @endif @endif @endsection @if(in_array(\Auth::user()->role, [1,2, 11,12, 20, 30])) {{-- --}} @endif @if (!in_array(\Auth::user()->role, [10, 40])) @else @yield('accounting_menu') @endif @endif {{-- Closing Accounting Menu --}} {{-- Setting menu --}} @if(in_array(\Auth::user()->role, [1,2,5,11,12])) @endif {{-- /Setting menu --}} {{-- Shop Menu --}} @if (in_array($this_properti, [1,2])) @if(\Auth::user()->role != 10) @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12])) {{-- --}} @endif @endif @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12, 40,30])) @section('shop_menu') {{--Super Admin, Super Manager, Manager--}} @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12])) @if(in_array(\Auth::user()->role, [1,2,20])) @endif {{-- --}} {{-- --}} @elseif (in_array(\Auth::user()->role, [30])) @endif @if(in_array(\Auth::user()->role, [1,2,20])) @endif @if(in_array(\Auth::user()->role, [1,2,40])) {{-- --}} @if(in_array(\Auth::user()->role, [40])) @endif @endif @endsection @if (\Auth::user()->role != 40) @else @yield('shop_menu') @endif @endif @endif {{-- Closing Shop Menu --}} {{-- --}} {{-- @if(\Auth::user()->role != 10) @endif --}} @endif @if (in_array(\Auth::user()->role, [10])) @else @endif