@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 Invoice Date Customer Type Customer Name Company Name Foreman Status Action
#{{ 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
{{ $invoices->links() }}
@endsection @section('script') @endsection