migrate to gtea from bistbucket
This commit is contained in:
79
resources/views/admin/testimonials/datas.blade.php
Normal file
79
resources/views/admin/testimonials/datas.blade.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@can('testimonials-delete')
|
||||
<th>
|
||||
<div class="d-flex align-items-center gap-1">
|
||||
|
||||
<label class="table-custom-checkbox">
|
||||
<input type="checkbox" class="table-hidden-checkbox selectAllCheckbox">
|
||||
<span class="table-custom-checkmark custom-checkmark"></span>
|
||||
</label>
|
||||
<i class="fal fa-trash-alt delete-selected"></i>
|
||||
</div>
|
||||
</th>
|
||||
@endcan
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Stars') }}</th>
|
||||
<th>{{ __('Client Name') }}</th>
|
||||
<th>{{ __('Work At') }}</th>
|
||||
<th>{{ __('Client Image') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($testimonials as $testimonial)
|
||||
<tr>
|
||||
@can('testimonials-delete')
|
||||
<td class="w-60 checkbox text-start">
|
||||
<label class="table-custom-checkbox">
|
||||
<input type="checkbox" name="ids[]" class="table-hidden-checkbox checkbox-item"
|
||||
value="{{ $testimonial->id }}" data-url="{{ route('admin.testimonials.delete-all') }}">
|
||||
<span class="table-custom-checkmark custom-checkmark"></span>
|
||||
</label>
|
||||
<i></i>
|
||||
</td>
|
||||
@endcan
|
||||
<td>{{ ($testimonials->currentPage() - 1) * $testimonials->perPage() + $loop->iteration }}</td>
|
||||
<td>
|
||||
@for ($i = 0; $i < 5; $i++)
|
||||
<i @class(['fas fa-star ', 'text-warning' => $testimonial->star > $i])></i>
|
||||
@endfor
|
||||
</td>
|
||||
<td>{{ $testimonial->client_name }}</td>
|
||||
<td>{{ $testimonial->work_at }}</td>
|
||||
<td>
|
||||
<img class="table-img" src="{{ asset($testimonial->client_image) }}" alt="img">
|
||||
</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>
|
||||
<a href="{{ route('admin.testimonials.edit', $testimonial->id) }}">
|
||||
<i class="fal fa-pencil-alt"></i>
|
||||
{{ __('Edit') }}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('admin.testimonials.destroy', $testimonial->id) }}"
|
||||
class="confirm-action" data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
{{ $testimonials->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user