@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]))
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]))
Admin Menu
@endif
{{-- Closing Admin Menu --}}
@if(in_array(\Auth::user()->role, [1,11,12]) && hotelID())
Group Hotel Report
@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]))
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
@if(in_array(\Auth::user()->role, [1,2, 5, 6, 11,12,50]))
-
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
@elseif (in_array(\Auth::user()->role, [30]))
-
Arrangement Code
-
Rate Code
@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
-
Report Housekeeping
{{-- @if(cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id) > 0)
{{cleanCountHK(\Session::get('hotel_id') ?? \Auth::user()->hotel_id)}}
@endif --}}
@if(in_array(\Auth::user()->role, [50]))
-
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
@endif
@if (in_array($this_properti, [1,2]))
@if(in_array(\Auth::user()->role, [1,2,50,10,11,12,30]))
-
Guest Lost & Found
@endif
@endif
@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')
Calendar
Floorview
Reservation
@if (in_array(env('APP_NAME'), ['Laravel', 'testHotel']))
@if (\Auth::user()->role == 1)
Config Payment Gateway
@endif
Booking Engine
@endif
@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 (!in_array(\Auth::user()->role, [10,30]))
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
{{-- 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]))
Guest Data
Guest Birthday List
@else
Guest Menu
@endif
@if(in_array(\Auth::user()->role, [1,2, 5, 6, 30]))
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
{{-- 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]))
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
Report Nonstay
@endif
@if (in_array(\Auth::user()->role, [10]))
Running Audit
@endif
@else
@if (in_array($this_properti, [1,2]))
Report FO
Report Nonstay
@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]))
@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]))
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,12]))
Setting
@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]))
Dashboard POS
@endif
Complimentaries
Shops
Table Shop
{{--
Shops-Transactions
Resto Transactions
--}}
{{--
Invoice Shops
--}}
@elseif (in_array(\Auth::user()->role, [30]))
@endif
@if(in_array(\Auth::user()->role, [1,2,20]))
POS Transactions
@endif
@if(in_array(\Auth::user()->role, [1,2,40]))
{{--
Shop POS
--}}
@if(in_array(\Auth::user()->role, [40]))
Dashboard
@endif
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