@extends('layouts.admin') @section('title', 'Transaction Summary Report') @section('content-header', 'Transaction Summary Report') @section('content')
@php $count = 0; $spending = 0; @endphp @foreach($receipt_data as $receipt) @foreach($receipt as $key => $detail) @php if($detail->extra4 == 'DI'){ $order = 'Dine In'; }else if($receipt[0]->extra4 == 'DL'){ $order = 'Delivery'; }else{ $order = 'Take Away'; } @endphp @if($key > 0) @if($detail->cancel_flag == 1) @else @endif @php $spending += $detail->sub_total; $count++; @endphp @endif @endforeach @endforeach
@if($status == 'succ')

Transaction Report Summary || {{ $fromDate }}->{{ $toDate }} || SUCCESS

@elseif($status == 'all')

Transaction Report Summary || {{ $fromDate }}->{{ $toDate }} || ALL

@elseif($status == 'cann')

Transaction Report Summary || {{ $fromDate }}->{{ $toDate }} || CANCELLED

@endif
Receipt No Receipt Type Date & Time Sub Total (RM) Media Type Status
{{$receipt[0]->BID}}
{{ $detail->receipt_no }} {{ $order }} {{ $detail->c_dd }} {{ $detail->sub_total}} {{ $detail->media_type}}CANCELLEDSUCCEEDED
Total Receipt {{ $count}}

@endsection @section('js') @endsection