@extends('layouts.app') @section('main-content')

Invoice List

All Invoices
New Invoice
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@forelse($invoices as $invoice) @empty @endforelse
Invoice No Customer Type Customer Name Company Name Status Action
{{ 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
{{ $invoices->links() }}
@endsection