@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: '.__('Lista de Conselhos Municipais')) @section('content') @include('errors.messageFlash')
@php $headLine = " " . __('Lista de Conselhos Municipais'); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.dashboard', 'nameBack' => __('Voltar'), 'routeAdd' => 'admin.conselhosMunicipais.conselhos.create', 'nameAdd' => __('Novo conselho'), 'permission' => 'GERENCIADOR_DE_CONSELHOS'])
@if(isset($isAdmin) && $isAdmin)
@else
@endif
@include('components.tables._thead', ['thead' => [__('Foto'), __('Nome'), __('Pertence a'), __('Bairro'), __('Email'), __('Telefone'), __('Status'), __('Ações')]]) @php $index = 0 @endphp @forelse($conselhos as $conselho) @php $index++ @endphp @empty @endforelse
{{ $conselho->nome }} {{ $conselho->nome }} {{ $conselho->pertence->name ?? '' }} {{ $conselho->endereco->bairro ?? '' }} {{ $conselho->email }} {{ $conselho->telefone }} @include('components/buttons/_status', [ 'index' => $index, 'route' => 'admin.conselhosMunicipais.conselhos.status', 'id' => $conselho->id, 'status' => $conselho->status, 'permission' => 'GERENCIADOR_DE_CONSELHOS', ])
{{ __('* Nenhum registro encontrado!') }}
{!! $conselhos->links() !!}
@endsection