@extends(\Auth::user()->role != 40 ? 'layout' : 'layoutfrontdesk') @section('title', 'Dashboard POS') @section('css') @endsection @section('content')
@if (in_array(\Auth::user()->role, [1,2,5,6]))

Rp {{ribuanDuaAngkaBelakangKomaIndo($food_rev->rev)}}

Food Revenue

Rp {{ribuanDuaAngkaBelakangKomaIndo($beverage_rev->rev)}}

Beverage Revenue

Rp {{ribuanDuaAngkaBelakangKomaIndo($other_rev->rev)}}

Other Revenue
@endif
Rush Hours
Best-seller Items    
@if(!$most_purchased_menu->isEmpty()) @foreach($most_purchased_menu as $menu) {{-- --}} @endforeach @else @endif
no Item Name Item Type Shop Price Status Cost Complimentary
{{ $loop->iteration }}
 {{$menu->nama}}
{{$menu->tipeMenu->nama_tipe}}
{{$menu->tipeMenu->shop->nama}}
Rp. {{number_format($menu->harga, 0, ',', '.')}}
Rp. {{ribuanWithComma($menu->harga)}}
{{config('custom.status_menu')[$menu->status]}}
{{$menu->cost_complimentary ? $menu->cost_complimentary . "%" : '-' }}
No Data
Unpopular Items    
@if(!$most_purchased_menu->isEmpty()) @foreach($most_unpurchased_menu as $menu) {{-- --}} @endforeach @else @endif
no Item Name Item Type Shop Price Status Cost Complimentary
{{ $loop->iteration }}
 {{$menu->nama}}
{{$menu->tipeMenu->nama_tipe}}
{{$menu->tipeMenu->shop->nama}}
Rp. {{number_format($menu->harga, 0, ',', '.')}}
Rp. {{ribuanWithComma($menu->harga)}}
{{config('custom.status_menu')[$menu->status]}}
{{$menu->cost_complimentary ? $menu->cost_complimentary . "%" : '-' }}
No Data
Sold Out Items    
@if(!$sold_out_menu->isEmpty()) @foreach($sold_out_menu as $menu) {{-- --}} @endforeach @else @endif
no Item Name Item Type Shop Price Cost Complimentary
{{ $loop->iteration }}
 {{$menu->nama}}
{{$menu->tipeMenu->nama_tipe}}
{{$menu->tipeMenu->shop->nama}}
Rp. {{number_format($menu->harga, 0, ',', '.')}}
Rp. {{ribuanWithComma($menu->harga)}}
{{$menu->cost_complimentary ? $menu->cost_complimentary . "%" : '-' }}
No Data
Guest Lost and Found    
@if (count($data_guest_lost_found) > 0) @foreach ($data_guest_lost_found as $item) @endforeach @else @endif
Shop Note Date Time Status
{{$item->nomor_kamar}} {{$item->note}} {{dateFormat($item->date, 'd-m-Y')}} {{dateFormat($item->losttime, 'H:i:s')}} {{$item->status ? config('custom.lostfound_status')[$item->status] : ''}}
No Data
@endsection @section('js') @endsection