@extends(!in_array(\Auth::user()->role, [10, 15]) ? 'layout' : 'layoutfrontdesk') @section('title', 'Quick Report') @section('css') @endsection @section('content')
@foreach($periods as $key=>$period) @if ($type_period == 1) @else @endif @endforeach @foreach ($sales as $key=>$sale) @foreach($periods as $period) @endforeach @endforeach
Source{{date('d-m-Y',strtotime($period))}}{{date('F, Y', strtotime(date('Y-d-m', strtotime('01/' . str_replace('-', '/', $period)))))}}Total Period
{{$sale}} {{ array_key_exists($key, $data_sales) ? (array_key_exists($period, $data_sales[$key]['per_period_nett']) ? number_format($data_sales[$key]['per_period_nett'][$period], 2) : 0) : 0}}{{ array_key_exists($key, $data_sales) ? (array_key_exists($key, $data_sales) ? number_format($data_sales[$key]['total_nett'], 2) : '0') : '0'}}


1. Calculation of FO Transaction exclude Paid out Item (Refund) +Transfer bill from POS
2. Calculation of Nonstay Transaction exclude Room Charge, Paid out Item (Refund) +Transfer bill from POS
@endsection @section('js') @endsection