@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Lista de Banners") @section('content')
@php $headLine = " Lista de Banners"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), // 'routeBack' => 'admin.turismoNautico.index', // 'routeBackParams' => [], // 'nameBack' => __("Voltar"), 'routeAdd' => 'admin.banners.create', 'routeAddParams' => [], 'nameAdd' => __('Novo banner'), "permission" => "GERENCIADOR_DE_BANNERS", ])
@include("errors.messageFlash") @php $index = 0; @endphp @foreach($banners as $banner) @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
@endsection