@extends('layouts.admin') @section('title', 'Transaction Detail Report') @section('content-header', 'Transaction Detail Report') @section('content')
@php $cancel_count= 0; $count = 0; @endphp @foreach($receipt_data as $receipt) @php if($receipt[0]->extra4 == 'DI'){ $order = 'Dine In'; }else if($receipt[0]->extra4 == 'DL'){ if($receipt[0]->extra6 != ''){ $order = 'Delivery by ' . $receipt[0]->extra6; } else { $order = 'Default Delivery'; } }else{ $order = 'Take Away'; } $count ++; @endphp @if($receipt[0]->cancel_flag == 1) @php $cancel_count++; @endphp @else @endif @foreach($receipt as $detail) @php if($detail->tx_type == 'ST'){ $type = 'Sub Total'; $tax_amount = $detail->total_tax_amt; }else if($detail->tx_type == 'P'){ $type = 'Item'; $tax_amount = $detail->tax_amt; }else if($detail->tx_type == 'T'){ $type = 'Tissue'; $tax_amount = $detail->tax_amt; }else if($detail->tx_type == 'CR'){ $type = 'Cutlery'; $tax_amount = $detail->tax_amt; }else if($detail->tx_type == 'PS'){ $type = 'Plastic'; $tax_amount = $detail->tax_amt; }else if($detail->tx_type == 'OF'){ $type = 'Open Float'; }else if($detail->tx_type == 'VC'){ $type = 'Voucher'; } @endphp @endforeach @endforeach
@if($toDate)

POS Transactions {{ $title }} || {{ $fromDate }} to {{ $toDate }}

@else

POS Transactions {{ $title }} || {{ $fromDate }}

@endif
Type Counter Register No. Date || Time SKU Code || Description Sub Total Total Voucher Overall Receipt Price Overall Item Price Sell Price Tax Amount Quantity Amount Rounding Amount Pay Amount Discount Amount Media Type Status
{{$receipt[0]->receipt_no}} || {{$order}}CANCELLEDSUCCESS
{{ $type }} {{ $detail->reg }} {{ $detail->c_dd }} {{ $detail->sku_id }} {{$detail->sku_desc}} {{ $detail->sub_total }} {{ $detail->voucheramt ?? 0}} {{ $detail->sub_total + $detail->voucheramt}} {{ number_format($detail->sell_price,2)}} {{ number_format($detail->sell_price - $detail->tax_amt,2)}} {{ number_format($detail->tax_amt,2) }} {{ $detail->quantity }} {{ $detail->amt }} {{ $detail->rounding }} {{ $detail->pay_amt }} {{ $detail->disc_amt }} {{ $detail->media_type }}
Branch Net Sale (RM) {{ number_format( $net_sales, 2) }}
Total Discount (RM) {{ $receipt_data2->disc }}
Total Tissue (RM) {{ number_format( $tissue, 2) }}
Total Cutlery (RM) {{ number_format( $cutlery, 2) }}
Total Plastic (RM) {{ number_format( $plastic, 2) }}
Total Tax (RM) {{ number_format( $taxdata->tax, 2) }}
Grand Total (RM) {{ number_format( $net_sales + $taxdata->tax + $plastic + $cutlery + $tissue,2) }}
Total Item Quantity {{ $receipt_data2->quantity}}
Total Tissue (Quantity) {{ $receipt_data2->tissue ?? 0 }}
Total Cutlery (Quantity) {{ $receipt_data2->cutlery ?? 0 }}
Total Plastic (Quantity) {{ $receipt_data2->plastic ?? 0 }}
Total Receipt {{ $count}}
Total Cancelled Receipt {{ $cancel_count }}

@endsection @section('js') @endsection