Files
portal-api/resources/views/admin/customer/transaction.blade.php
T
2025-07-24 16:18:27 +07:00

54 lines
2.1 KiB
PHP

@extends('admin.main')
@section('content')
@if (auth()->guard('admins')->user()->can('edit customer'))
<div class="card card-outline card-primary">
<div class="card-header">
@include('admin.block.nav')
</div>
<div class="card-body">
<table class="table table-invoice table-bordered">
<thead>
<tr>
<th>Transaction ID</th>
<th>Amount</th>
<th>Date</th>
</tr>
</thead>
<tbody>
@if (count($transactions))
@foreach ($transactions as $item)
<tr>
<td class="text-center">
{{ $item->trans }}
</td>
<td class="text-center">
{{ number_format($item->amount, 0, ',', '.') }} đ
</td>
<td class="text-center">
{{ $item->created_at }}
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="8">
No Records Found
</td>
</tr>
@endif
</tbody>
<tfoot>
{!! $transactions->withQueryString()->links() !!}
</tfoot>
</table>
</div>
</div>
@else
<div class="alert alert-danger alert-dismissible">
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Customer
management department</h5>
</div>
@endif
@endsection