@extends('layouts.admin') @section('title', 'Hourly Report') @section('content-header', 'Hourly Report') @section('content')
@php $k = 0; $overall_receipt = 0; $overall_cancel = 0; $overall_tax = 0; $overall_sale = 0; $overall_cancel_sale = 0; @endphp @foreach ($info as $infos) @php $j = $start; $l = $end; $i = 0; @endphp @while ($j < $l) @if (isset($data[$k][$i]) && $data[$k][$i]->hour == $j) @php $overall_receipt += $data[$k][$i]->count; $overall_cancel += $data[$k][$i]->cancel_count; $overall_tax += number_format($data[$k][$i]->total_tax_sum,2); $overall_sale += $data[$k][$i]->sub_total_sum; $overall_cancel_sale += $data[$k][$i]->cancel_total_sum; $i++; @endphp @else @endif @php $j++; @endphp @endwhile @php $k++; @endphp @endforeach

Hourly Report For {{$tittle}} on {{$date}}

Period Receipt Count Sale Total Tax Overall Sales Total Cancelled Receipt Overall Cancelled Sales
{{$infos['BID']}} || {{$infos['Description']}}
{{$j}}->{{$j+1}}{{$data[$k][$i]->count}} {{number_format(($data[$k][$i]->sub_total_sum - $data[$k][$i]->total_tax_sum),2)}} {{number_format($data[$k][$i]->total_tax_sum,2)}} {{number_format($data[$k][$i]->sub_total_sum,2)}} {{$data[$k][$i]->cancel_count}} {{number_format($data[$k][$i]->cancel_total_sum,2)}}- - - - - -
Overall Receipt {{$overall_receipt}}
Overall Cancelled Receipt {{$overall_cancel}}
Total Tax {{$overall_tax}}
Total Sales {{number_format($overall_sale,2)}}
Total Cancelled Sales {{number_format($overall_cancel_sale,2)}}

@endsection @section('js') @endsection