@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Lista de Páginas HTML") @section('content')
{{ __('Lista de Páginas HTML') }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@if (auth()->user()->getPermissaoDetalhes("GERENCIADOR_DE_PAGINAS_HTML")['adicionar']) @include('components.buttons._newButton', ['url' => 'admin.htmls.create', 'text' => __('Nova Página HTML')]) @endif
@include('components.tables._thead', ['thead' => [__('Data de criação'), __('Título'), __('Pertence a'), __('Exibição'), __('Link'), __('Menu Personalizado'), __('Visível na Lista de Serviços'), __('Status')]]) @php $index = 0; @endphp @forelse($htmls as $html) @php $index++; @endphp @empty @endforelse
{{ date("d/m/Y H:i:s", strtotime($html->created_at)) }} {{ $html->title }}
@include('components.buttons._editButton', [ "route" => "admin.htmls.edit", "id" => $html->id, "title" => __('Editar'), "fontawesome" => null, "permission" => "GERENCIADOR_DE_PAGINAS_HTML", ]) @include('components.buttons._deleteButton', [ "message" => __("* Esta página HTML será excluída e esta ação não poderá ser desfeita, deseja continuar?"), "route" => "admin.htmls.destroy", "id" => $html->id, "title" => __('Excluir'), "fontawesome" => null, "permission" => "GERENCIADOR_DE_PAGINAS_HTML", ])
@if(empty($html->structure_id)) --- @else {{ optional($html->pertence)->name }} @endif @if(($html->display_context ?? 'BOTH') === 'ORG_PAGE') {{ __('Somente no órgão') }} @elseif(($html->display_context ?? 'BOTH') === 'INDEPENDENT') {{ __('Somente independente') }} @else {{ __('Órgão + independente') }} @endif @if(($html->display_context ?? 'BOTH') !== 'ORG_PAGE') @else --- @endif @if (auth()->user()->getPermissaoDetalhes("GERENCIADOR_DE_PAGINAS_HTML")['editar'])
id) }}" method="post"> @csrf @if(!empty($filterParams)) @foreach($filterParams as $key => $value) @if($value !== null && $value !== '') @endif @endforeach @endif
custom_menu_enabled ? 'checked' : '' }} onclick="var f=this.form; f.querySelector('input[name=custom_menu_enabled]').value=this.checked?'1':'0'; f.submit();">
{{ __('Editar Menu Personalizado') }}
@else {{ $html->custom_menu_enabled ? __('Ativado') : __('Desativado') }} @endif
@if (auth()->user()->getPermissaoDetalhes("GERENCIADOR_DE_PAGINAS_HTML")['editar'])
id)}}" method="post"> @csrf @if(!empty($filterParams)) @foreach($filterParams as $key => $value) @if($value !== null && $value !== '') @endif @endforeach @endif @if($html->visibility == "ATIVADO")
@else
@endif
@else {{ $html->visibility }} @endif
@if (auth()->user()->getPermissaoDetalhes("GERENCIADOR_DE_PAGINAS_HTML")['editar'])
id)}}" method="post"> @csrf @if(!empty($filterParams)) @foreach($filterParams as $key => $value) @if($value !== null && $value !== '') @endif @endforeach @endif @if(($html->status ?? 'ATIVADO') == "ATIVADO")
@else
@endif
@else {{ $html->status ?? 'ATIVADO' }} @endif

{{ __('Nenhuma Página HTML encontrada.') }}

{!! $htmls->links() !!}
@endsection