@extends('admin.admin_dashboard') @section('admin')
@can('ap.bills.view')
@foreach($bills as $i => $b) @endforeach
# Date Ref Vendor Total Action
{{ $i + 1 + ($bills->currentPage() - 1) * $bills->perPage() }} {{ \Carbon\Carbon::parse($b->bill_date)->format('Y-m-d') }} {{ $b->reference }} {{ $b->vendor->name }} {{ number_format($b->grand_total, 2) }}
{{ $bills->links('vendor.pagination.bootstrap-5') }}
@endcan
{{-- SweetAlert2 for delete confirmation --}} @endsection