@include('layouts.header')
@include('layouts.sidebar')

Daily Sales

Daily Sales

@php $no = 1; $subtotal = 0; // Initialize subtotal variable $discounttotal = 0; $amounttotal = 0; @endphp @foreach ($daily_pos as $pos) @php $no++; $subtotal += $pos->discount_total + $pos->total; $discounttotal += $pos->discount_total; $amounttotal += $pos->total; @endphp @endforeach
No. POS No. Date Sub Total Discount Total Amount Sale By Action
{{ $no }} {{ $pos->invoice_no }} {{ $pos->created_at->format('m-d-y') }} {{ number_format($pos->discount_total + $pos->total) }} {{ number_format($pos->discount_total ?? 0) }} {{ number_format($pos->total) }} {{ $pos->sale_by }}
Total {{ number_format($subtotal) }} {{ number_format($discounttotal) }} {{ number_format($amounttotal) }}
{{-- --}}