@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]))
Dashboard
@endif
@if (in_array(\Auth::user()->role, [1,2]))
Statistic Menu
@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))
Admin Menu
@if(cekakses(10,$arrgroup))
-
User
@endif
{{-- @if(in_array(\Auth::user()->role, [1])) --}}
@if(cekakses(20,$arrgroup))
-
SA Group
@endif
@if(cekakses(30,$arrgroup))
-
Hotel Group
@endif
{{-- @endif --}}
@if(cekakses(40,$arrgroup))
-
Hotel
@endif
{{-- -
Country
-
Province
-
Cities
--}}
@if(cekakses(49,$arrgroup))
-
Log Activity
-
User Log
-
OTA send log
@endif
@if (in_array(\Auth::user()->role, [1,2,11,12,60]) && hotelID())
-
Roles settings
@endif
@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))
Room Menu
@php
$notifroom = 0;
if(cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0){
$notifroom += cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id);
}
if (in_array(\Auth::user()->role,[1,2,50])) {
if(cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0){
$notifroom += cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id);
}
}
if(countroomtypenearexpired() > 0){
$notifroom += countroomtypenearexpired();
}
@endphp
@if($notifroom > 0)
{{$notifroom}}
@endif
{{--Super Admin, Super Manager, Manager--}}
@if(in_array(\Auth::user()->role, [1,2, 5, 6, 11, 12]))
{{-- -
Homepage Web Setting
--}}
-
Facilities
-
Room Type
@if(countroomtypenearexpired() > 0)
{{countroomtypenearexpired()}}
@endif
-
Arrangement Code
-
Rate Code
{{--
-
Revenue Group
--}}
-
Room
@if(cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0)
{{cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id)}}
@endif
-
Room Status
@if(cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0)
{{cleanCount(\Session::get('hotel_id') ?? \Auth::user()->hotel_id)}}
@endif
@if(cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0)
{{cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id)}}
@endif
@endif
{{--Super Admin dan Cleaning Service--}}
@if(in_array(\Auth::user()->role, [1,2,50,11,12]))
-
Housekeeping
@if(cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0)
{{cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id)}}
@endif
@endif
@if (in_array($this_properti, [1,2]))
@if(in_array(\Auth::user()->role, [1,2,50,10,11,12]))
-
Guest Lost & Found
@endif
@endif
@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')
Calendar
Floorview
Reservation
@if (!in_array(\Auth::user()->role, [40,10]))
Room Availability
@else
Room Menu
@endif
@if (!in_array(\Auth::user()->role, [40,10]))
Guest Bill
@if (in_array($this_properti, [1,2]))
Non Stay Folio
@endif
@else
Bill Menu
@endif
{{--
Booking Histories
Verifikasi Pembayaran
@if(verifikasiPembayaranCount() > 0)
{{verifikasiPembayaranCount()}}
@endif
--}}
@if(cekaksesmodul(611))
{{-- @if (!in_array(\Auth::user()->role, [10])) --}}
Running Audit
@endif
@endsection
@if(\Auth::user()->role != 10)
@if(in_array(\Auth::user()->role, [1,2, 11,12]))
{{-- --}}
@endif
Booking Menu
@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]))
Guest Data
Guest Birthday List
@else
Guest Menu
@endif
@if(in_array(\Auth::user()->role, [1,2, 5, 6]))
Company Profile
@endif
@endsection
@if(\Auth::user()->role != 10)
@if(in_array(\Auth::user()->role, [1,2, 5, 6, 11, 12]))
{{-- --}}
@endif
Guest Data
@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]))
Chart of Account (COA)
AR & AP Payment Method
@endif
@if (in_array($this_properti, [1,2]))
Setting Budget
@endif
Payment Platform
{{--
Setting Discount & Allowance
--}}
@if (in_array($this_properti, [1]))
Purchasing
Inventory Setting
@if (\Session::get('hotel_id') ?? \Auth::user()->hotel_id)
@if (lowStock()>0)
{{lowStock()}}
@endif
@endif
Asset Management
@endif
@endif
@if (!in_array(\Auth::user()->role, [40]))
{{--
Guest Bill
Non Stay Folio
--}}
{{--
Company Bill
--}}
{{--
Deposit
--}}
{{--
Split Bill
--}}
@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]))
Account Receivable
Account Payable
{{--
Transfer
--}}
@endif
Bank account
@endif
@if(in_array(\Auth::user()->role, [1,2, 5, 10, 11, 12, 20, 30]))
{{--
Bill Transfer History
--}}
{{--
Running Audit
--}}
{{--
Report FO
--}}
@if(\Auth::user()->role == 10)
@if (in_array($this_properti, [1,2]))
Report FO
@endif
@if(cekaksesmodul(611))
{{-- @if (in_array(\Auth::user()->role, [10])) --}}
Running Audit
@endif
@else
@if (in_array($this_properti, [1,2]))
Report FO
@endif
@endif
@endif
@if(in_array(\Auth::user()->role, [1,2, 5, 11, 12, 20, 6]))
@if (in_array($this_properti, [1]))
Edit Stored Guest Ledger
General Cashier
@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]))
Report POS
@endif
@if (!in_array(\Auth::user()->role, [30]))
@if (in_array($this_properti, [1]))
Income Audit
{{--
General Ledger Close Month
--}}
General Ledger
@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))
Quick Report Menu
Accounting Menu
@if (\Session::get('hotel_id') ?? \Auth::user()->hotel_id)
@if (lowStock()>0)
{{lowStock()}}
@endif
@endif
@yield('accounting_menu')
@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))
Setting
{{-- @if(in_array(\Auth::user()->role, [1,2,5,11]) && !is_null(\Session::get('hotel_id'))) --}}
@if(cekakses(100,$arrgroup) && !is_null(\Session::get('hotel_id')))
@if(\Auth::user()->role != 10)
{{-- -
Homepage Web Setting
--}}
-
Departments
@endif
@endif
-
Country
-
Province
-
Cities
@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))
Complimentaries
Shops
Table Shop
{{--
Shops-Transactions
Resto Transactions
--}}
{{--
Invoice Shops
--}}
@endif
{{-- @if(in_array(\Auth::user()->role, [1,2,20])) --}}
@if(cekakses(110,$arrgroup))
POS Transactions
@endif
{{-- @if(in_array(\Auth::user()->role, [1,2,40])) --}}
@if(cekakses(110,$arrgroup))
{{--
Shop POS
--}}
POS
@endif
@endsection
@if (\Auth::user()->role != 40)
Shop Menu
@else
@yield('shop_menu')
Report POS
@endif
@endif
@endif
{{-- Closing Shop Menu --}}
{{--
Departments
--}}
{{--
@if(\Auth::user()->role != 10)
Departments
@endif --}}
@endif
@if (in_array(\Auth::user()->role, [10]))
More
@else
Patchlist
@endif