@extends('template.layout') @section('style') @endsection @section('content')
| # | Branch | Invoice Code | Invoice Date | Invoice Type | Invoice Status | Salesman | Customer Name | Item | Payment Type | Payment Date | Payment Amount | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->branch->name }} | {{ $payment->invoice->code }} | {{ $payment->invoice->date }} | {{ $payment->invoice->type }} | {{ $payment->invoice->status }} | {{ $payment->invoice->salesman->name }} | {{ $payment->invoice->customer_name }} | {{ $payment->invoice->item->name }} | {{ $payment->type }} | {{ $payment->date }} | {{ number_format($payment->amount, 2) }} | View | @php $total_payment++; $total_payment_amount += $payment->amount; @endphp