@extends('layouts.app') @section('content') @section('css') @endsection

{{ isset($title)?$title:'Reports' }}

Sales

@if(isset($reports1) && !empty($reports1)) @php $r1_total_value = 0; $r1_total_discount = 0; $r1_total_net_value = 0; $r1_total_tax = 0; $r1_total_tax_and_value = 0; @endphp @foreach($reports1 as $row) @php $r1_total_value += $row->value; $r1_total_discount += $row->discount; $r1_total_net_value += $row->net_value; $r1_total_tax += $row->tax; $r1_total_tax_and_value += $row->value+$row->tax; @endphp @endforeach @endif
Date Time Bill No User Value Discount Net Value Tax Value with Tax Order Type MOP Status Customer
{{date("d-M-Y", strtotime($row->date))}} {{date("h:i A", strtotime($row->bill_time))}} {{$row->bill_no}} {{$row->cashier}} {{$row->value}} {{$row->discount}} {{$row->net_value}} {{$row->tax}} {{$row->value+$row->tax}} {{$row->order_type}} {{$row->mop}} @if($row->bill_status == 0) Placed @elseif($row->bill_status == 1) Accept @elseif($row->bill_status == 2) Decline @elseif($row->bill_status == 3) Pending @elseif($row->bill_status == 4) Delivered @elseif($row->bill_status == 5) Paid @endif {{ucwords($row->name)}}
{{$r1_total_value}} {{$r1_total_discount}} {{$r1_total_net_value}} {{$r1_total_tax}} {{$r1_total_tax_and_value}}

Category/Item

@if(isset($reports2) && !empty($reports2)) @php $r2_total_quantity = 0; $r2_total_value = 0; $r2_total_discount = 0; $r2_total_net_value = 0; $r2_total_tax = 0; $r2_total_tax_and_value = 0; @endphp @foreach($reports2 as $row) @php $r2_total_quantity += $row->quantity; $r2_total_value += $row->value; $r2_total_discount += $row->discount; $r2_total_net_value += $row->net_value; @endphp @endforeach @endif
Date User Bill No Item Category Item Name Qty Value Discount Net Value Order Type MOP
{{date("d-M-Y", strtotime($row->date))}} {{$row->cashier}} {{$row->bill_no}} {{$row->item_category}} {{$row->item_name}} {{$row->quantity}} {{$row->value}} {{$row->discount}} {{$row->net_value}} {{$row->order_type}} {{$row->mop}}
{{$r2_total_quantity}} {{$r2_total_value}} {{$r2_total_discount}} {{$r2_total_net_value}}

Order Type

@if(isset($order_type) && !empty($order_type)) @php $ot_total_sale = 0; $ot_total_discount = 0; $ot_total_tax = 0; $ot_total_delivery_charges = 0; $ot_total_netsale = 0; @endphp @foreach($order_type as $row) @php $ot_total_sale += $row->sale; $ot_total_discount += $row->discount; $ot_total_tax += $row->tax; $ot_total_delivery_charges += $row->delivery_charges; $ot_total_netsale += $row->netsale; @endphp @endforeach @endif
Order Type Sale Discount Tax Delivery Charges Net Sale
{{ $row->order_type }} {{ round($row->sale) }} {{ round($row->discount) }} {{ round($row->tax) }} {{ round($row->delivery_charges) }} {{ round($row->netsale) }}
{{ round($ot_total_sale) }} {{ round($ot_total_discount) }} {{ round($ot_total_tax) }} {{ round($ot_total_delivery_charges) }} {{ round($ot_total_netsale) }}

Payment Type

@if(isset($payment_type) && !empty($payment_type)) @php $pm_total_sale = 0; $pm_total_discount = 0; $pm_total_tax = 0; $pm_total_delivery_charges = 0; $pm_total_netsale = 0; @endphp @foreach($payment_type as $row) @php $pm_total_sale += $row->sale; $pm_total_discount += $row->discount; $pm_total_tax += $row->tax; $pm_total_delivery_charges += $row->delivery_charges; $pm_total_netsale += $row->netsale; @endphp @endforeach @endif
Payment Type Sale Discount Tax Delivery Charges Net Sale
{{ $row->payment_type }} {{ round($row->sale) }} {{ round($row->discount) }} {{ round($row->tax) }} {{ round($row->delivery_charges) }} {{ round($row->netsale) }}
{{ round($pm_total_sale) }} {{ round($pm_total_discount) }} {{ round($pm_total_tax) }} {{ round($pm_total_delivery_charges) }} {{ round($pm_total_netsale) }}

Platform

@if(isset($platform) && !empty($platform)) @php $pf_total_sale = 0; $pf_total_discount = 0; $pf_total_tax = 0; $pf_total_delivery_charges = 0; $pf_total_netsale = 0; @endphp @foreach($platform as $row) @php $pf_total_sale += $row->sale; $pf_total_discount += $row->discount; $pf_total_tax += $row->tax; $pf_total_delivery_charges += $row->delivery_charges; $pf_total_netsale += $row->netsale; @endphp @endforeach @endif
Platform Name Sale Discount Tax Delivery Charges Net Sale
{{ $row->platform }} {{ round($row->sale) }} {{ round($row->discount) }} {{ round($row->tax) }} {{ round($row->delivery_charges) }} {{ round($row->netsale) }}
{{ round($pf_total_sale) }} {{ round($pf_total_discount) }} {{ round($pf_total_tax) }} {{ round($pf_total_delivery_charges) }} {{ round($pf_total_netsale) }}
@section('js') @endsection @endsection