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

All Invoice

@if (canAccess(['invoice create'])) Create Invoice @endif
@if (canAccess(['invoice grand total', 'invoice pending amount', 'invoice unpaid amount', 'invoice paid amount'])) @endif
@if (!empty($info->results) && $info->results->isNotEmpty())
@php($allAmount = 0) @foreach ($info->results as $key => $row) @php($allAmount += $row->grand_total) @endforeach
Invoice No Method Email Amount Status Created At Updated At Paid Date User Info Is Send? Is Warning? Is Remove? Link Action
#{{ $row->invoice_no }} {{ !empty($row->method->name) ? $row->method->name : '' }}
{{ $row->email }}
{{ sprintf("$%0.2f", $row->grand_total) }} @if ($row->status == 'pending') {{ strFilter($row->status) }} @elseif($row->status == 'unpaid') {{ strFilter($row->status) }} @elseif($row->status == 'delete') {{ strFilter($row->status) }} @else {{ strFilter($row->status) }} @endif {{ !empty($row->created) ? date('d F, Y', strtotime($row->created)) : '' }} {{ !empty($row->updated) ? date('d F, Y', strtotime($row->updated)) : '' }} {{ !empty($row->payment_date) ? date('d F, Y', strtotime($row->payment_date)) : '' }} {{ !empty($row->admin->name) ? $row->admin->name : '' }} @if ($row->is_send > 0) {{ $row->is_send }} @else No @endif @if ($row->is_warning > 0) {{ $row->is_warning }} @else No @endif @if ($row->is_remove > 0) {{ $row->is_remove }} @else No @endif Copy
Total {{ sprintf("$%0.2f", $allAmount) }}  
{{ $info->results->links() }}
@endif
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush