migrate to gtea from bistbucket
This commit is contained in:
73
Modules/Business/resources/views/units/datas.blade.php
Normal file
73
Modules/Business/resources/views/units/datas.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('units.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>
|
||||
<th class="text-start">{{ __('Unit Name') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($units as $unit)
|
||||
<tr>
|
||||
@usercan('units.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $unit->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
|
||||
<td>{{ ($units->currentPage() - 1) * $units->perPage() + $loop->iteration }}</td>
|
||||
|
||||
<td class="text-start">{{ $unit->unitName }}</td>
|
||||
<td class="text-center">
|
||||
<label class="switch">
|
||||
<input type="checkbox" {{ $unit->status == 1 ? 'checked' : '' }} class="status"
|
||||
data-url="{{ route('business.units.status', $unit->id) }}">
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</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">
|
||||
<li>
|
||||
@usercan('units.update')
|
||||
<a href="#unit-edit-modal" data-bs-toggle="modal" class="units-edit-btn"
|
||||
data-url="{{ route('business.units.update', $unit->id) }}"
|
||||
data-units-name="{{ $unit->unitName }}"
|
||||
data-units-status="{{ $unit->status }}"><i
|
||||
class="fal fa-pencil-alt"></i>{{ __('Edit') }}</a>
|
||||
@endusercan
|
||||
</li>
|
||||
<li>
|
||||
@usercan('units.delete')
|
||||
<a href="{{ route('business.units.destroy', $unit->id) }}" class="confirm-action"
|
||||
data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
@endusercan
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $units->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user