@extends('layouts.app') @section('main-content')
| Invoice No | Customer Type | Customer Name | Company Name | Status | Action | @forelse($invoices as $invoice)|||||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ str_pad($invoice->invoice_no, 5, '0', STR_PAD_LEFT) }} | @if ($invoice->customer->customertype === 'B') Business @else Personal @endif | {{ $invoice->customer->name }} | {{ $invoice->customer->companyname }} | @if ($invoice->status == 'P') Pending @elseif ($invoice->status == 'A') Approved @else Rejected @endif | ||||||
| Record not found | ||||||||||