71 lines
3.4 KiB
PHP
71 lines
3.4 KiB
PHP
<div class="responsive-table m-0">
|
|
<table class="table" id="datatable">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-60">
|
|
<div class="d-flex align-items-center gap-3">
|
|
<input type="checkbox" class="select-all-delete multi-delete">
|
|
</div>
|
|
</th>
|
|
<th>{{ __('SL') }}.</th>
|
|
<th>{{ __('Date') }}</th>
|
|
<th>{{ __('Name') }}</th>
|
|
<th>{{ __('Type') }}</th>
|
|
<th>{{ __('Cheque Number') }}</th>
|
|
<th>{{ __('Payment') }}</th>
|
|
<th>{{ __('Amount') }}</th>
|
|
<th>{{ __('Status') }}</th>
|
|
<th class="text-center">{{ __('Action') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($cheques as $cheque)
|
|
<tr>
|
|
<td class="w-60 checkbox">
|
|
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
|
value="{{ $cheque->id }}">
|
|
</td>
|
|
<td>{{ ($cheques->currentPage() - 1) * $cheques->perPage() + $loop->iteration }}</td>
|
|
<td>{{ formatted_date($cheque->date) }}</td>
|
|
<td>{{ $cheque->user?->name }}</td>
|
|
<td>{{ ucwords(str_replace('_', ' ', $cheque->platform)) }}</td>
|
|
<td>{{ $cheque->meta['cheque_number'] ?? '' }}</td>
|
|
<td>{{ ucwords(str_replace('_', ' ', $cheque->transaction_type)) }}</td>
|
|
<td>
|
|
{{ currency_format($cheque->amount, currency: business_currency()) }}
|
|
</td>
|
|
<td class="{{ $cheque->type == 'pending' ? 'text-danger' : 'text-success' }}">
|
|
{{ $cheque->type }}
|
|
</td>
|
|
<td>
|
|
<div class="d-flex align-items-center gap-2 justify-content-center">
|
|
@if (($cheque->type ?? '') == 'pending')
|
|
<a type="button" class="add-order-btn rounded-2 btn btn-primary cheque-transfer-btn"
|
|
data-bs-toggle="modal" data-bs-target="#deposit"
|
|
data-received-from = "{{ $cheque->user?->name }}"
|
|
data-transaction-id="{{ $cheque->id }}"
|
|
data-cheque-amount = "{{ currency_format($cheque->amount, currency: business_currency()) }}"
|
|
data-cheque-no = "{{ $cheque->meta['cheque_number'] ?? '' }}"
|
|
data-cheque-date = "{{ formatted_date($cheque->date) }}"
|
|
data-ref-no = "{{ $cheque->invoice_no }}">
|
|
{{__('Deposit') }}
|
|
</a>
|
|
@else
|
|
<a type="button" class="add-order-btn rounded-2 btn btn-primary reopen-btn"
|
|
data-transaction-id="{{ $cheque->id }}">
|
|
{{__('Re-Open') }}
|
|
</a>
|
|
@endif
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
{{ $cheques->links('vendor.pagination.bootstrap-5') }}
|
|
</div>
|