migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('warehouses.delete')
|
||||
<th class="w-60">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<input type="checkbox" class="select-all-delete multi-delete">
|
||||
</div>
|
||||
</th>
|
||||
@endusercan
|
||||
<th>{{ __('SL') }}.</th>
|
||||
@if (moduleCheck('MultiBranchAddon') && multibranch_active())
|
||||
<th class="text-start">{{ __('Branch') }}</th>
|
||||
@endif
|
||||
<th class="text-start">{{ __('Name') }}</th>
|
||||
<th class="text-start">{{ __('Phone') }}</th>
|
||||
<th class="text-start">{{ __('Email') }}</th>
|
||||
<th class="text-start">{{ __('Address') }}</th>
|
||||
<th class="text-start">{{ __('Stock Qty') }}</th>
|
||||
<th class="text-start">{{ __('Stock Value') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($warehouses as $warehouse)
|
||||
<tr>
|
||||
@usercan('warehouses.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $warehouse->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($warehouses->currentPage() - 1) * $warehouses->perPage() + $loop->iteration }}</td>
|
||||
@if (moduleCheck('MultiBranchAddon') && multibranch_active())
|
||||
<td class="text-start">{{ $warehouse->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $warehouse->name }}</td>
|
||||
<td class="text-start">{{ $warehouse->phone }}</td>
|
||||
<td class="text-start">{{ $warehouse->email }}</td>
|
||||
<td class="text-start">{{ $warehouse->address }}</td>
|
||||
<td class="text-start">{{ $warehouse->total_qty }}</td>
|
||||
<td class="text-start">{{ currency_format($warehouse->total_value, currency: business_currency()) }}</td>
|
||||
|
||||
<td class="d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
@usercan('warehouses.read')
|
||||
<li>
|
||||
<a href="#warehouse-view" class="warehouse-view-btn" data-bs-toggle="modal"
|
||||
data-warehouse-name="{{ $warehouse->name }}"
|
||||
data-branch-name="{{ $warehouse->branch->name ?? '' }}"
|
||||
data-warehouse-email="{{ $warehouse->email }}"
|
||||
data-warehouse-phone="{{ $warehouse->phone }}"
|
||||
data-warehouse-address="{{ $warehouse->address }}">
|
||||
<i class="fal fa-eye"></i>
|
||||
{{ __('View') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
|
||||
@usercan('warehouses.update')
|
||||
<li>
|
||||
<a href="#warehouses-edit-modal" data-bs-toggle="modal" class="warehouse-edit-btn"
|
||||
data-url="{{ route('warehouse.warehouses.update', $warehouse->id) }}"
|
||||
data-name="{{ $warehouse->name }}"
|
||||
data-branch-id="{{ $warehouse->branch->id ?? '' }}"
|
||||
data-phone="{{ $warehouse->phone }}" data-email="{{ $warehouse->email }}"
|
||||
data-address="{{ $warehouse->address }}">
|
||||
<i class="fal fa-edit"></i></i>{{ __('Edit') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
|
||||
@usercan('warehouses.delete')
|
||||
<li>
|
||||
<a href="{{ route('warehouse.warehouses.destroy', $warehouse->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $warehouses->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user