@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Lista de Boletins") @section('content')
@php $headLine = " Lista de Boletins"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), // 'routeBack' => 'admin.turismoNautico.index', // 'routeBackParams' => [], // 'nameBack' => __("Voltar"), 'routeAdd' => 'admin.boletins.create', 'routeAddParams' => [], 'nameAdd' => __('Novo Boletim'), "permission" => "GERENCIADOR_DE_BOLETINS", ])
{{ __('Total de boletins') }}: {{ number_format($totalBoletins, 0, ',', '.') }}
@include("errors.messageFlash")
Pesquisar por:
@php $index = 0; @endphp @foreach($boletins as $boletim) {{ date("d/m/Y", strtotime($boletim->publicationDate)) }} @foreach(App\Enums\StatusMonth::cases() as $status) @if($status->name == $boletim->month) {{ $status->value }} @endif @endforeach {{ $boletim->number }} {{ $boletim->title }} {{ $boletim->fileSizeKB }} KB @if($boletim->extraordinaryEdition) Edição Extraordinária @else --- @endif @include('components/buttons/_status', [ "index" => $index, "route" => "admin.boletins.status", "id" => [$boletim->id], "status" => $boletim->status, "permission" => "GERENCIADOR_DE_BOLETINS", ])
@include('components/buttons/_editButton', [ "route" => "admin.boletins.edit", "id" => [$boletim->id], "fontawesome" => null, "title" => "Editar", "permission" => "GERENCIADOR_DE_BOLETINS", ]) @include('components/buttons/_deleteButton', [ "message" => __("* Este boletim será excluído e esta ação não poderá ser desfeita, deseja continuar?"), "route" => "admin.boletins.destroy", "id" => [$boletim->id], "fontawesome" => null, "title" => "Excluir", "permission" => "GERENCIADOR_DE_BOLETINS", ]) @if($boletim->indexado) @else @include('components/buttons/_btnActionPost',[ "route" => "admin.boletins.indexacao", "id" => [$boletim->id], "fontawesome" => null, "permission" => "GERENCIADOR_DE_BOLETINS", ]) @endif
@php $index++; @endphp @endforeach
@endsection