Files
click-erp/resources/views/client/partials/recent-payments.blade.php
2023-05-08 10:13:03 +00:00

43 lines
1.7 KiB
PHP

<div>
<div class="table-responsive">
<table class="table table-striped ">
<thead>
<tr class="headings">
<th class="column-title">Invoice Number</th>
<th class="column-title">Invoice Amount</th>
<th class="column-title">Invoice Date</th>
<th class="column-title">Services</th>
<th class="column-title">Remarks</th>
<th class="column-title">Status</th>
<th class="column-title no-link last"><span class="nobr">Action</span>
</th>
</tr>
</thead>
<tbody>
@if ($recent_payments->isEmpty())
<tr>
<td class="" colspan="12">No Records found</td>
</tr>
@else
@foreach ($recent_payments as $row)
<tr class="even pointer">
<td class="mes-td col-md-1">{{ $row->invoice_number }}</td>
<td class="mes-td col-md-1">{{ $row->invoice_amount }}</td>
<td class="mes-td col-md-2">{{ date('d-m-Y', strtotime($row->invoice_date)) }}</td>
<td class="mes-td col-md-3">{{ $row->services }} </td>
<td class="mes-td col-md-3" style="width: 100px;">{{ $row->remarks }}</td>
<td class="mes-td col-md-1"><span class="label label-<?php echo ($row->invoice_status == 'PAID') ? 'success' : 'danger'; ?>"> {{ $row->invoice_status }}</span></td>
<td class="last col-md-1" style="width: 100px;">
<span>
<input type="hidden" name="payment_entry_id" value="{{ $row->id }}" class="paymentEntryRowId">
<a href="" class="btn btn-xs btn-primary paymentEntryEditBtn"><i class="fa fa-edit"></i></a>
</span>
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
</div>