@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: Lista de Centros de Referências CRAS e CREAS') @section('content')
@php $headLine = " Lista de Centros de Referências CRAS e CREAS"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), // 'routeBack' => 'admin.turismoNautico.index', // 'routeBackParams' => [], // 'nameBack' => __("Voltar"), 'routeAdd' => 'admin.acaoSocial.centrosDeReferencia.create', 'routeAddParams' => [], 'nameAdd' => __('Novo centro de referência'), "permission" => "GERENCIADOR_DE_CENTROS_REFERENCIA", ])
@include("errors.messageFlash") @include('components/forms/_filtroPesquisaDefault', [ "id" => "centrosReferenciasCRASCREAS", "placeholder" => "Pesquisar por centro de referencia..."]) @php $pathSystem = $_SERVER['DOCUMENT_ROOT'] . "/"; $angraDefault = asset("/pmar/assets/img/icons/centro_referencia.png"); @endphp @php $index = 0; @endphp @foreach($centros as $centro) @include('components.tables._openPhoto', [ 'asset' => file_exists( $pathSystem . $centro->foto ) ? asset($centro->foto) : asset($angraDefault), 'alt' => $centro->nome, 'title' => $centro->nome, 'text' => 'Visualizar foto', ]) {{ date("d/m/Y H:i", strtotime($centro->created_at)) }} {{ $centro->nome }} {{ $centro->pertence->name }} {{ $centro->endereco->bairro }} {{ $centro->email }} {{ $centro->telefone }} {{ $centro->tipoCentroReferencia }} @if($centro->possuiRecursosMultifuncionais) @else @endif @include('components.buttons._status', [ "index" => $index, "route" => "admin.acaoSocial.centrosDeReferencia.status", "id" => $centro->id, "status" => $centro->status, "permission" => "GERENCIADOR_DE_CENTROS_REFERENCIA", ])
@include('components.buttons._editButton', [ "route" => "admin.acaoSocial.centrosDeReferencia.edit", "id" => $centro->id, "title" => "Editar", "fontawesome" => null, "permission" => "GERENCIADOR_DE_CENTROS_REFERENCIA", ]) @include('components.buttons._deleteButton', [ "message" => __("* Este centro de referância será excluído e esta ação não poderá ser desfeita, deseja continuar?"), "route" => "admin.acaoSocial.centrosDeReferencia.destroy", "id" => $centro->id, "title" => "Excluir", "fontawesome" => null, "permission" => "GERENCIADOR_DE_CENTROS_REFERENCIA", ])
@php $index++; @endphp @endforeach
@endsection