@php $total_service = 0; $total_test = 0; $total_reservation = 0; $total_cod_qty = 0; $total_service_subtotal = 0; $total_service_subtotal_tax = 0; $total_service_cod_subtotal = 0; $total_service_subtotal_cod_tax = 0; $total_service_credit_subtotal = 0; $total_service_subtotal_credit_tax = 0; $total_credit_qty = 0; @endphp @foreach($orders as $order) @php $total_service += 1; $total_test += $order->quantity ?? 0; $total_reservation += $order->total_reservations ?? 0; $total_cod_qty += $order->cod_qty ?? 0; $total_service_subtotal += ($order->service_subtotal ?? 0) - ($order->service_subtotal_tax ?? 0); $total_service_subtotal_tax += $order->service_subtotal_tax ?? 0; $total_service_cod_subtotal += ($order->service_cod_subtotal ?? 0) - ($order->service_subtotal_cod_tax ?? 0); $total_service_subtotal_cod_tax += $order->service_subtotal_cod_tax ?? 0; $total_credit_qty += $order->credit_qty ?? 0; $total_service_credit_subtotal += ($order->service_credit_subtotal ?? 0) - ($order->service_subtotal_credit_tax ?? 0); $total_service_subtotal_credit_tax += $order->service_subtotal_credit_tax ?? 0; @endphp @endforeach

{{$Profile->NAME_EN}}

Services Income Report

Registration Branch Client Name Processing Unit Service Code Service Name Service Type Service Qty Service Subtotal Service {{$global_symbol['tax'] ?? 'TAX'}} Service Net Total OPD Qty OPD Subtotal OPD {{$global_symbol['tax'] ?? 'TAX'}} OPD Net Total Credits Qty Credits Subtotal Credits {{$global_symbol['tax'] ?? 'TAX'}} Credits Net Total
{{$order->registration_branch ?? null}} {{$order->client_name ?? null}} {{$order->processing_unit ?? null}} {{$order->CODE ?? null}} {{$order->NAME_EN ?? null}} {{$order->service_type ?? null}} {{$order->quantity ?? 0}} {{($order->service_subtotal ?? 0) - ($order->service_subtotal_tax ?? 0)}} {{$order->service_subtotal_tax ?? 0}} {{($order->service_subtotal ?? 0) + ($order->service_subtotal_tax ?? 0)}} {{$order->cod_qty ?? 0}} {{($order->service_cod_subtotal ?? 0) - ($order->service_subtotal_cod_tax ?? 0)}} {{$order->service_subtotal_cod_tax ?? 0}} {{($order->service_cod_subtotal ?? 0)+($order->service_subtotal_cod_tax ?? 0)}} {{$order->credit_qty ?? 0}} {{($order->service_credit_subtotal ?? 0) - ($order->service_subtotal_credit_tax ?? 0)}} {{$order->service_subtotal_credit_tax ?? 0}} {{($order->service_credit_subtotal ?? 0)+($order->service_subtotal_credit_tax ?? 0)}}
Service Qty : {{$total_test}} Service Subtotal : {{$total_service_subtotal}} Service {{$global_symbol['tax'] ?? 'TAX'}} : {{$total_service_subtotal_tax}} Service Net Total : {{$total_service_subtotal + $total_service_subtotal_tax}} COD Qty : {{$total_cod_qty}} COD Subtotal : {{$total_service_cod_subtotal}} COD {{$global_symbol['tax'] ?? 'TAX'}} : {{$total_service_subtotal_cod_tax}} COD Net Total : {{$total_service_cod_subtotal + $total_service_subtotal_cod_tax}} Credits Qty : {{$total_credit_qty}} Credits Subtotal : {{$total_service_credit_subtotal}} Credits {{$global_symbol['tax'] ?? 'TAX'}} : {{$total_service_subtotal_credit_tax}} Credits Net Total : {{$total_service_credit_subtotal + $total_service_subtotal_credit_tax}}