63 lines
3.8 KiB
PHP
63 lines
3.8 KiB
PHP
<table class="table-hover table-fix-action m-0 table">
|
|
@if (count($convictionpageModels) > 0)
|
|
<thead>
|
|
@include('bo.modules.table-col-sorter', [
|
|
'cols' => [
|
|
'key_feed' => Str::ucfirst(__('validation.custom.key_feed')),
|
|
'key_earth_1' => Str::ucfirst(__('validation.custom.key_earth_1')),
|
|
'key_earth_2' => Str::ucfirst(__('validation.custom.key_earth_2')),
|
|
'key_together_1' => Str::ucfirst(__('validation.custom.key_together_1')),
|
|
'key_together_2' => Str::ucfirst(__('validation.custom.key_together_2')),
|
|
'key_together_3' => Str::ucfirst(__('validation.custom.key_together_3')),
|
|
'key_together_4' => Str::ucfirst(__('validation.custom.key_together_4')),
|
|
'key_territory' => Str::ucfirst(__('validation.custom.key_territory')),
|
|
'updated_at' => Str::ucfirst(__('validation.attributes.updated_at')),
|
|
],
|
|
])
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($convictionpageModels as $convictionpageModel)
|
|
<tr class="border-bottom list-item">
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_feed }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_earth_1 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_earth_2 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_together_1 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_together_2 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_together_3 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_together_4 }}</td>
|
|
<td class="text-center align-middle">{{ $convictionpageModel->key_territory }}</td>
|
|
<td class="text-center align-middle">
|
|
<span class="badge bg-secondary">{{ $convictionpageModel->updated_at->isoFormat('LLLL') }}</span>
|
|
</td>
|
|
@php
|
|
$routeName = request()
|
|
->route()
|
|
->getName();
|
|
@endphp
|
|
<td class="text-end align-middle">
|
|
@canAny(['update'], $convictionpageModel)
|
|
<form class="btn-group confirmDeleteTS" action="{{ route('bo.convictionpages.edit', $convictionpageModel) }}"
|
|
method="POST" novalidate>
|
|
@can('update', $convictionpageModel)
|
|
<a class="btn btn-sm btn-primary" data-bs-toggle="tooltip"
|
|
href="{{ route('bo.convictionpages.edit', ['convictionpage' => $convictionpageModel]) }}"
|
|
title="{{ Str::ucfirst(__('crud.actions.update')) }}">
|
|
<i class="fa-solid fa-pencil"></i>
|
|
</a>
|
|
@endcan
|
|
</form>
|
|
@else
|
|
<span class="text-danger" data-bs-toggle="tooltip" title="{{ __('list.right') }}">
|
|
<i class="fa-solid fa-ban"></i>
|
|
</span>
|
|
@endcan
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
@else
|
|
<tr>
|
|
<td class="border-0">{{ __('crud.other.no_model_found', ['model' => __('models.classes.convictionpage')]) }}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|