@extends('layouts.admin') @section('title', 'IT Transaction Report') @section('content-header', 'IT Transaction Report') @section('content')
@foreach ($column as $column) @endforeach @php $overall_success = 0; $overall_cancelled = 0; @endphp @foreach($data as $info) @foreach($info as $key => $detail) @if($key > 0) @if($type == 'transaction') @elseif($type == 'item') @foreach($detail as $item) @endforeach @elseif($type == 'card') @foreach($detail as $item) @endforeach @elseif($type == 'voucher') @foreach($detail as $item) @endforeach @elseif($type == 'delivery') @foreach($detail as $item) @endforeach @endif @endif @endforeach @endforeach
@php $date = new \DateTime(); @endphp

{{$tittle}} || Printed on {{$date->format('Y-m-d H:i:s')}} By {{$by}}

{{$column}}
{{$info[0]->BID}}
{{ $detail->receipt_no }} {{ $detail->order_type ?? "-"}} {{ $detail->cashier_no}} - {{ $detail->cashier_name}} {{ $detail->date}} {{ $detail->reg}} {{ $detail->oid}} {{ $detail->total_subtotal}} {{ $detail->voucher_amt ?? 0}} {{ $detail->total_subtotal - $detail->voucher_amt}} {{ $detail->tax_amt}} {{ $detail->SST6}} {{ $detail->SST8}} {{ $detail->media_type}} {{ $detail->cancel_status }} @php if ($detail->cancel_status == 'success') { $overall_success++; } else if ($detail->cancel_status == 'cancelled') { $overall_cancelled++; } @endphp {{ $detail->tissue_quantity ?? 0}} {{ $detail->plastic_quantity ?? 0}} {{ $detail->cutlery_quantity ?? 0}} {{ $detail->item_quantity ?? 0}} 0 {{ $detail->total_subtotal - $detail->tax_amt}}
{{ $item->receipt_no }} {{ $item->sku_id }} {{ $item->sku_desc }} {{ $item->extra5 }} {{ $item->sell_price }} @if ($item->cancel_flag == 0) Successful @else Cancelled @endif @php if ($item->cancel_flag == 0) { $overall_success++; } else { $overall_cancelled++; } @endphp {{ $item->quantity }} {{ $item->amt }} {{ $item->tax_code }} {{ $item->tax_amt }} {{ $item->amt - $item->tax_amt }}
{{ $item->receipt_no }} {{ $item->media_no}} {{ $item->media_type}} {{ $item->media_refno ?? "-"}} {{ $item->amt}} @if ($item->cancel_flag == 0) Successful @else Cancelled @endif @php if ($item->cancel_flag == 0) { $overall_success++; } else { $overall_cancelled++; } @endphp
{{ $item->receipt_no }} {{ $item->partBeforeHyphen}} {{ $item->partAfterHyphen}} {{ $item->amt}} @if ($item->cancel_flag == 0) Successful @else Cancelled @endif @php if ($item->cancel_flag == 0) { $overall_success++; } else { $overall_cancelled++; } @endphp
{{ $item->receipt_no }} {{ $item->extra6}} {{ $item->sub_total}} @if ($item->cancel_flag == 0) Successful @else Cancelled @endif @php if ($item->cancel_flag == 0) { $overall_success++; } else { $overall_cancelled++; } @endphp
Total Success Receipt {{$overall_success}}
Total Failed Receipt {{$overall_cancelled}}

@endsection @section('js') @endsection