@extends('admin.template.master') @section('content')
@csrf
@foreach ($branches as $br) @if ($branch_ids != '') @if (in_array($br->branch_id, $branch_ids))
{{ $br->branch_name }}
@else
{{ $br->branch_name }}
@endif @else
{{ $br->branch_name }}
@endif @endforeach
@php $sno = 0; $total_st = 0; $total_ds = 0; $total_gt = 0; $total_ph = 0; @endphp @foreach ($sales as $sls) @php$sno++;@endphp @endforeach
S.no Date/Time Branch Invoice Payment Type Sub Total Discount Grand Total Purchases Difference Invoice
{{ $loop->iteration }} {{ $sls->dated }} {{ $sls->branch->branch_name }} {{ $sls->invoice }} {{ $sls->payment_type }} {{ $sls->sub_total }} {{ $sls->discount }} {{ $sls->grand_total }} {{ $sls->purchases }} {{ formatAmount($sls->grand_total - $sls->purchases) }}
           
@endsection @section('customjs') @endsection