refactor(slides): update column definitions and formatting
- Removed unused 'label' and 'text' columns. - Adjusted 'tableColSorter' parameters for clarity.
This commit is contained in:
parent
1e1172b757
commit
aef658645b
1 changed files with 8 additions and 5 deletions
|
|
@ -6,8 +6,7 @@
|
|||
</tr>
|
||||
@php
|
||||
$cols = [
|
||||
'label' => Str::ucfirst(__('validation.custom.attributes.label')),
|
||||
'text' => Str::ucfirst(__('validation.attributes.text')),
|
||||
'title' => Str::ucfirst(__('validation.attributes.title')),
|
||||
'picture' => Str::ucfirst(__('validation.attributes.image')),
|
||||
'link' => Str::ucfirst(__('validation.custom.attributes.link')),
|
||||
'visible' => Str::ucfirst(__('Visible')),
|
||||
|
|
@ -16,13 +15,16 @@
|
|||
'order' => Str::ucfirst(__('validation.custom.attributes.order')),
|
||||
];
|
||||
@endphp
|
||||
@include('bo.modules.tableColSorter', ['cols' => $cols, 'ignore' => ['visible'], 'mobileHide' => ['description']])
|
||||
@include('bo.modules.tableColSorter', [
|
||||
'cols' => $cols,
|
||||
'ignore' => ['visible', 'picture'],
|
||||
'mobileHide' => ['description'],
|
||||
])
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($slides as $slide)
|
||||
<tr>
|
||||
<td>{{ $slide->title }}</td>
|
||||
<td>{!! clean($slide->text) !!}</td>
|
||||
<td>
|
||||
<img src="{{ asset($slide->picture) }}" alt="{{ $slide->title }}" height="50px">
|
||||
</td>
|
||||
|
|
@ -31,7 +33,8 @@
|
|||
@if ($slide->isVisible())
|
||||
<i class="fas fa-check check-green" data-bs-toggle="tooltip" title="{{ __('Visible') }}"></i>
|
||||
@if ($slide->connected)
|
||||
<br><span class="badge bg-secondary" data-bs-toggle="tooltip" title="{{ __('Connected members only') }}"><i class="fa-solid fa-lock"></i> {{ __('Connected') }}</span>
|
||||
<br><span class="badge bg-secondary" data-bs-toggle="tooltip" title="{{ __('Connected members only') }}"><i
|
||||
class="fa-solid fa-lock"></i> {{ __('Connected') }}</span>
|
||||
@endif
|
||||
@else
|
||||
<i class="fas fa-times cross-red" data-bs-toggle="tooltip" title="{{ __('Not visible') }}"></i>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue