@extends('template.layout') @section('style') @endsection @section('content')
| # | Date | Code | Customer Name | NIC | Salesman | Item | Status | Bill Amount | Paid | Not Paid | Payment | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $invoice->date }} | {{ $invoice->code }} | {{ $invoice->customer_name }} | {{ $invoice->customer_nic }} | {{ $invoice->salesman->name }} | {{ $invoice->item->name }} | @if ($invoice->status == 'Processing') {{ $invoice->status }} @elseif($invoice->status == 'Complete') {{ $invoice->status }} @endif | {{ number_format($invoice->amount, 2) }} | {{ number_format($invoice->payment_sum_amount, 2) }} | {{ number_format($invoice->amount - $invoice->payment_sum_amount, 2) }} |
| # | Code | Date | Invoice Code | Customer | Type | Amount | Action |
|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->code }} | {{ $payment->date }} | {{ $payment->invoice->code }} | {{ $payment->invoice->customer_name }} | {{ $payment->type }} | {{ number_format($payment->amount, 2) }} |