@extends('backend.layouts.master') @section('section-title', 'Invoice') @section('page-title', 'Invoice List') @if (check_permission('invoice.create')) @section('action-button') Add Invoice @endsection @endif @push('css') @endpush @section('content')
| SL# | Date | Invoice No | Customer | Product Item(s) | Total Amount | Total Paid | Total Due | Return Amount | Status | Create By | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $data->date }} | {{ $data->invoice_no }} | {{ $data->customer->name }} |
@foreach ($inv_items as $item)
|
{{ $data->total_amount }} | {{ $data->total_paid }} | {{ $data->total_due }} | @if($data->return_amount == null) 0.00 @else {{$data->return_amount}} @endif | @if ($data->status == 0) Due @elseif($data->status == 1) Paid @elseif($data->status == 2) Returned @endif | {{ $data->user->name }} |
|
| No Invoice Found | |||||||||||
| Total: | {{ number_format($total_amt,2) }} | {{ number_format($total_paid,2) }} | {{ number_format($total_due,2) }} | ||||||||