migrate to gtea from bistbucket
This commit is contained in:
80
Modules/Business/resources/views/brands/datas.blade.php
Normal file
80
Modules/Business/resources/views/brands/datas.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('brands.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>{{ __('Icon') }}</th>
|
||||
<th class="text-start">{{ __('Brand Name') }}</th>
|
||||
<th class="text-start">{{ __('Description') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($brands as $brand)
|
||||
<tr>
|
||||
@usercan('brands.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $brand->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($brands->currentPage() - 1) * $brands->perPage() + $loop->iteration }}</td>
|
||||
<td>
|
||||
<img src="{{ asset($brand->icon ?? 'assets/images/logo/upload2.jpg') }}" alt="Img"
|
||||
class="table-product-img">
|
||||
</td>
|
||||
|
||||
<td class="text-start">{{ $brand->brandName }}</td>
|
||||
<td class="text-start">{{ Str::limit($brand->description, 20, '...') }}</td>
|
||||
<td>
|
||||
<label class="switch">
|
||||
<input type="checkbox" {{ $brand->status == 1 ? 'checked' : '' }} class="status"
|
||||
data-url="{{ route('business.brands.status', $brand->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('brands.update')
|
||||
<a href="#brand-edit-modal" data-bs-toggle="modal" class="brand-edit-btn"
|
||||
data-url="{{ route('business.brands.update', $brand->id) }}"
|
||||
data-brands-name="{{ $brand->brandName }}"
|
||||
data-brands-icon="{{ asset($brand->icon ?? 'assets/images/icons/upload-icon.svg') }}"
|
||||
data-brands-description="{{ $brand->description }}"><i
|
||||
class="fal fa-pencil-alt"></i>{{ __('Edit') }}</a>
|
||||
@endusercan
|
||||
</li>
|
||||
<li>
|
||||
@usercan('brands.delete')
|
||||
<a href="{{ route('business.brands.destroy', $brand->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">
|
||||
{{ $brands->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user