finishing to dev
All checks were successful
All checks were successful
This commit is contained in:
@@ -1,23 +1,8 @@
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<div class="mb-2 text-center fw-bold duration-display">
|
||||
<strong>{{ __('Duration:') }}</strong>
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-60 d-print-none">
|
||||
<th class="w-60">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<input type="checkbox" class="select-all-delete multi-delete">
|
||||
</div>
|
||||
@@ -28,16 +13,15 @@
|
||||
<th>{{ __('Payment') }}</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Amount') }}</th>
|
||||
<th class="text-center d-print-none">{{ __('Action') }}</th>
|
||||
<th class="text-center">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cashes as $cash)
|
||||
<tr>
|
||||
<td class="w-60 checkbox d-print-none">
|
||||
@if($cash->platform === 'cash' && in_array($cash->transaction_type, ['cash_to_bank','adjust_cash']))
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete" value="{{ $cash->id }}">
|
||||
@endif
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $cash->id }}">
|
||||
</td>
|
||||
|
||||
<td>{{ ($cashes->currentPage() - 1) * $cashes->perPage() + $loop->iteration }}</td>
|
||||
@@ -55,7 +39,7 @@
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="dropdown table-action d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
@@ -116,10 +100,10 @@
|
||||
$editConfig = ['url' => route('business.sales.index')];
|
||||
} elseif ($cash->platform === 'purchase') {
|
||||
$editConfig = ['url' => route('business.purchases.index')];
|
||||
} elseif ($cash->platform === 'income') {
|
||||
$editConfig = ['url' => route('business.incomes.index')];
|
||||
}elseif ($cash->platform === 'expense') {
|
||||
$editConfig = ['url' => route('business.expenses.index')];
|
||||
} elseif ($cash->platform === 'income' && $cash->reference_id) {
|
||||
$editConfig = ['url' => route('business.incomes.edit', $cash->reference_id)];
|
||||
}elseif ($cash->platform === 'expense' && $cash->reference_id) {
|
||||
$editConfig = ['url' => route('business.expenses.edit', $cash->reference_id)];
|
||||
}elseif ($cash->platform === 'sale_return') {
|
||||
$editConfig = ['url' => route('business.sale-returns.index')];
|
||||
}elseif ($cash->platform === 'purchase_return') {
|
||||
@@ -154,14 +138,12 @@
|
||||
|
||||
{{-- Delete --}}
|
||||
@usercan('cashes.delete')
|
||||
@if($cash->platform === 'cash' && in_array($cash->transaction_type, ['cash_to_bank','adjust_cash']))
|
||||
<li>
|
||||
<a href="{{ route('business.cashes.destroy', $cash->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i> {{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endusercan
|
||||
|
||||
</ul>
|
||||
@@ -173,6 +155,6 @@ class="confirm-action" data-method="DELETE">
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="d-print-none">
|
||||
<div>
|
||||
{{ $cashes->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user