@extends('hotel_workspace.layout') @section('hotel-content')

Reports

@foreach(['Room Reports'=>['bookings'=>['General Room Report','fa-bed'],'occupancy'=>['Room Stays / Occupancy','fa-hotel'],'debtors'=>['Room Debtors — Unpaid Rooms','fa-file-invoice-dollar']],'Restaurant Reports'=>['restaurant'=>['Restaurant Sales','fa-receipt'],'products'=>['Sales by Product / Product Profit','fa-boxes']],'Financial Reports'=>['purchases'=>['Purchases Report','fa-shopping-cart'],'expenses'=>['Expenses Report','fa-money-bill-wave'],'refunds'=>['Guest Refunds','fa-undo'],'payments'=>['Guest Payments / Collections','fa-money-bill-wave'],'profit'=>['Profit & Loss Statement','fa-chart-line']]] as $section=>$links)

{{ $section }}

@foreach($links as $code=>[$title,$icon])@if(auth()->user()->hasPermission(in_array($code,['purchases','expenses'])?'hotel_'.$code.'.view':'hotel_reports.'.(in_array($code,['bookings','occupancy','debtors'])?'rooms':$code)))

{{ $title }}

View Report →
@endif @endforeach
@endforeach @endsection