|
@include('components.tables._openPhoto', [
'asset' => $banner->photo,
'alt' => $banner->title,
'title' => $banner->title,
'text' => 'Visualizar foto',
'style' => 'width: 200px',
'index' => $index,
])
|
{{ date("d/m/Y H:m:s", strtotime($banner->created_at)) }} |
{{ $banner->title }} |
@include('components.buttons._navButton', [
"link" => $banner->url,
"target" => "_blank",
"fontawesome" => '',
"title" => "Acessar página",
])
|
{{ $banner->order }} |
@foreach(App\Enums\StatusSectionBanner::cases() as $section)
@if($section->name == $banner->section)
{{ $section->value }}
@endif
@endforeach
|
@include('components/buttons/_status', [
"index" => $index,
"route" => "admin.banners.status",
"id" => [$banner->id],
"status" => $banner->status,
"permission" => "GERENCIADOR_DE_BANNERS",
])
|
@include('components/buttons/_editButton', [
"route" => "admin.banners.edit",
"id" => [$banner->id],
"fontawesome" => null,
"title" => "Editar",
"permission" => "GERENCIADOR_DE_BANNERS",
])
@include('components/buttons/_deleteButton', [
"message" => __("* Este banner será excluído e esta ação não poderá ser desfeita, deseja continuar?"),
"route" => "admin.banners.destroy",
"id" => [$banner->id],
"fontawesome" => null,
"title" => "Excluir",
"permission" => "GERENCIADOR_DE_BANNERS",
])
|
@php $index++; @endphp
@endforeach