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