@extends('app') @section('body') @php $path = 'sale_report'; @endphp
Purchase Report
@csrf
* @error('from_date')
{{ $message }}
@enderror
* @error('to_date')
{{ $message }}
@enderror
@if ($result)

Sale History

@php $total = 0; @endphp
@foreach ($result as $key => $row) @php $total += $row->total; @endphp @endforeach
# Name Category Date Quantity Price Total
# Name Category Date Quantity Price Total
{{ ++$key }} {{ $row->name . ' (' . $row->code . ')' }} {{ $row->category_name }} {{ date('d/m/Y', strtotime($row->date)) }} {{ $row->loose == 'true' ? $row->quantity / $row->qty . '(Loose)' : $row->quantity }} {{ $row->price }} {{ $row->total }}

Total Sale Amount: {{ $total }}

@endif
@endsection