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