@extends('admin.main') @section('content') @if (auth()->guard('admins')->user()->can('edit customer'))
@include('admin.block.nav')
@if (count($invoices) > 0) @foreach ($invoices as $item) @endforeach @else @endif {!! $invoices->withQueryString()->links() !!}
Invoice # Invoice Date Due Date Date Paid Total Payment Method Status
{{ $item->id }} @time($item->date) @time($item->due_date) @if ($item->status === 1) @time($item->date_paid) @endif @money($item->total) đ {{ $item->payment->name ?? 'VN Pay' }} {!! $item->getStatus() !!}
No Records Found
@else
Access Denied - You are not assigned to any Customer management department
@endif @endsection