@extends('layouts.app') @section('content')
Invoices
@can('create invoices') @lang('Create new Invoice') @endcan
@foreach($invoices as $invoice) @endforeach
Invoice No Customer Issue Date Gross Amount Balance Sales Person Status Created By Actions
INV{{ sprintf("%05d",$invoice->invoice_no) ?: "(blank)" }} {{$invoice?->customer?->name ?: "(blank)"}} {{ $invoice->issue_date ?: "(blank)" }} {{ number_format($invoice->gross_amount) ?: "0" }} {{ number_format($invoice->balance) ?: "0" }} {{ $invoice->sales_person ?: "(blank)" }} {{ $invoice->status ?: "(blank)" }} {{ $invoice->user->name ?: "(blank)" }} @if($invoice->trashed()) @can('delete invoices')
@csrf @method('PUT')
@csrf @method('DELETE')
@endcan @else @can('show invoices') @lang('Show') @endcan {{-- @if($invoice->status == "Draft") --}}
{{-- @endif --}} @endif
{{-- {{ $invoices->withQueryString()->links() }} --}}
@endsection