@php $this_disabled = (checkLicense() == 1 ? (cekSetupCompleted() ? '' : 'disabled') : 'disabled'); $this_properti = propertiTipe(); $arrmenu = Session::get('rolemenu'); $arrgroup = Session::get('rolegroup'); @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])) --}} @if(cekakses(10,$arrgroup) || cekakses(20,$arrgroup) || cekakses(30,$arrgroup) || cekakses(40,$arrgroup) || cekakses(49,$arrgroup)) @endif {{-- Closing Admin Menu --}} @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])) --}} @if(cekakses(50,$arrgroup)) @endif {{-- @endif @endif --}} {{-- Closing Room Menu --}} {{-- Booking Menu --}} {{--Super Admin dan Admin Frontdesk--}} {{-- @if(in_array(\Auth::user()->role, [1,2, 10, 11])) --}} @if(cekakses(60,$arrgroup)) @section('booking_menu') @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(cekaksesmodul(611)) {{-- @if (!in_array(\Auth::user()->role, [10])) --}} @endif @endsection @if(\Auth::user()->role != 10) @if(in_array(\Auth::user()->role, [1,2, 11,12])) {{-- --}} @endif @else @yield('booking_menu') @endif @endif {{-- @endif --}} {{-- Closing Booking Menu --}} {{-- Guest Profile --}} {{-- @if (in_array(\Auth::user()->role, [1,2, 5, 6, 10, 11,12, 20])) --}} @if (cekakses(70,$arrgroup)) @section('guest_profile') @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12, 20])) @else @endif @if(in_array(\Auth::user()->role, [1,2, 5, 6])) @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 {{-- @endif --}} {{-- Closing Guest Profile --}} {{-- Accounting Menu --}} {{-- @if(in_array(\Auth::user()->role, [1,2, 5, 10, 11, 20, 40, 30])) --}} @if (cekakses(90,$arrgroup)) @section('accounting_menu') {{-- @if(in_array(\Auth::user()->role, [1,2, 5, 11, 20])) --}} @if (cekakses(90,$arrgroup)) @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(cekaksesmodul(611)) {{-- @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, 30])) @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])) --}} @if (cekakses(80,$arrgroup)) @else @yield('accounting_menu') @endif @endif {{-- Closing Accounting Menu --}} {{-- Setting menu --}} {{-- @if(in_array(\Auth::user()->role, [1,2,5,11])) --}} @if(cekakses(100,$arrgroup)) @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, 40])) --}} @if(cekakses(110,$arrgroup)) @section('shop_menu') {{--Super Admin, Super Manager, Manager--}} {{-- @if(in_array(\Auth::user()->role, [1,2, 5, 6, 11])) --}} @if(cekakses(110,$arrgroup)) {{-- --}} {{-- --}} @endif {{-- @if(in_array(\Auth::user()->role, [1,2,20])) --}} @if(cekakses(110,$arrgroup)) @endif {{-- @if(in_array(\Auth::user()->role, [1,2,40])) --}} @if(cekakses(110,$arrgroup)) {{-- --}} @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