@extends('admin.layouts.app') @section('content')

Jinsi Forms (Dispatch Records) Create New

Total Dispatches

{{ $totalForms }}

Total Value

Rs. {{ number_format($totalValue, 2) }}

Total Tax

Rs. {{ number_format($totalTax, 2) }}

Average Value

Rs. {{ number_format($avgValue, 2) }}

@if($jinsiForms->count() > 0)
@foreach($jinsiForms as $form) @endforeach
IDEntry DateProductsTax DetailsTotalActions
{{ $form->id_no }} {{ $form->entry_date->format('Y-m-d') }} {{ $form->products->count() }} items @php $vatCount = $form->products->where('tax_type', 'vat')->count(); $customCount = $form->products->where('tax_type', 'custom')->count(); @endphp @if($vatCount > 0)VAT: {{ $vatCount }}@endif @if($customCount > 0)Custom: {{ $customCount }}@endif
Tax: Rs. {{ number_format($form->total_tax, 2) }}
Rs. {{ number_format($form->total_amount, 2) }} View Edit Report
{{ $jinsiForms->links() }} @else
No Jinsi Forms found.
@endif
@endsection