@extends('layouts.template') @section('template')

SALES REPORT - INVOICE WISE

{!! csrf_field() !!}

@if(isset($start_date)) Print/Download as PDF @endif
@if(isset($date_to_date_sales))
List Sales
@php $net_sales=0; $net_discount=0; $net_paid=0; $net_due=0; @endphp @foreach($date_to_date_sales as $key => $data) @php $net_sales += $data->memo_total; $net_discount += $data->discount; $net_paid += $data->advanced_amount; $net_due += ($data->memo_total-$data->discount-$data->advanced_amount); @endphp @endforeach
Sl No. Invoice No Customer Showing Price Discount Deposit Due
{{ ++$key }} {{$globalSettings->invoice_prefix."-BI-".str_pad($data->sales_master_id, 8, '0', STR_PAD_LEFT)}} {{ $data->customer_name }} {{ $data->mobile_no }} {{ number_format($data->memo_total,2) }} {{ number_format($data->discount,2) }} {{ number_format($data->advanced_amount,2) }} {{ number_format($data->memo_total-$data->discount-$data->advanced_amount,2) }}
TOTAL {{ number_format($net_sales,2) }} {{ number_format($net_discount,2) }} {{ number_format($net_paid,2) }} {{ number_format($net_due,2) }}
@endif
@endsection