Update source into github
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
@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 style="width: 10px">
|
||||
<label for=""></label><input type="checkbox" name="check" class="check-all"
|
||||
id="">
|
||||
</th>
|
||||
<th>Invoice #</th>
|
||||
<th>Invoice Date</th>
|
||||
<th>Due Date</th>
|
||||
<th>Date Paid</th>
|
||||
<th>Total</th>
|
||||
<th>Payment Method</th>
|
||||
<th style="width: 40px">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($invoices) > 0)
|
||||
@foreach ($invoices as $item)
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="id[]" id="" value="{{ $item->id }}">
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a
|
||||
href="{{ route('admin.invoice.edit', ['id' => $item->id]) }}">{{ $item->id }}</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@time($item->date)
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@time($item->due_date)
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if ($item->status === 1)
|
||||
@time($item->date_paid)
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center">
|
||||
|
||||
@money($item->total) đ
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{ $item->payment->name ?? 'VN Pay' }}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{!! $item->getStatus() !!}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
No Records Found
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
<tfoot>
|
||||
{!! $invoices->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
|
||||
Reference in New Issue
Block a user