@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: Lista de Pacientes com Fibromialgia') @push('scripts') @endpush @section('content')
@php $headLine = " Lista de Pacientes com Fibromialgia"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeAdd' => 'admin.saude.fibromialgia.verify', 'routeAddParams' => [], 'nameAdd' => __('Novo paciente'), 'routeOther' => "admin.saude.fibromialgia.chamados.abertos", 'nameOther' => __('Chamados'), 'fontawesomeOther' => "", "permission" => "GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA", ]) @if (auth()->user()->getPermissaoDetalhes("GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA")['visualizar']) {{-- Modal de Exportação com formulário interno --}}
@csrf
@endif
@include("errors.messageFlash") @include('components/forms/_filtroPesquisaDefault', [ "id" => "cadastroDeUsuario", "placeholder" => "Pesquisar por paciente com fibromialgia..." ]) @php $index = 0; @endphp @foreach($pacientes as $paciente) @php $pathSystem = $_SERVER['DOCUMENT_ROOT'] . "/"; $angraDefault = asset("/pmar/assets/img/icons/usuario.png"); $photo = file_exists( $pathSystem . optional($paciente->user)->photo ) ? optional($paciente->user)->photo : $angraDefault @endphp Foto de {{ $paciente->user->firstName }} {{ $paciente->user->name }} {{ $paciente->user->email }} {{ $paciente->user->phoneNumber }} {{ $paciente->user->cpf }}
{{ __("Cadastro") }}: {{ $paciente->status_cadastro }}
{{ __("Status da carteirinha") }}: {{ strtoupper($paciente->carteirinha_paciente) }}
{{ $paciente->status_carteirinha_label }} (atualizar)
@if(auth()->user()->getPermissaoDetalhes("GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA")['adicionar']) @endif @include('components.buttons._editButton', [ "route" => "admin.saude.fibromialgia.edit", "id" => $paciente->id, "title" => "Editar", "fontawesome" => null, "permission" => "GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA", ]) @include('components.buttons._editButton', [ "route" => "admin.saude.fibromialgia.anotacoes", "id" => $paciente->id, "title" => "Anotações", "fontawesome" => "", "permission" => "GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA", ]) @include('components.buttons._deleteButton', [ "message" => __("* Este paciente será excluído do cadastro de pacientes com fibromialgia e esta ação não poderá ser desfeita, deseja continuar?"), "route" => "admin.saude.fibromialgia.destroy", "id" => $paciente->id, "title" => "Excluir", "fontawesome" => null, "permission" => "GERENCIADOR_DO_CADASTRO_DE_PACIENTES_COM_FIBROMIALGIA", ])
@php $index++; @endphp @endforeach
@foreach($pacientes as $paciente) @endforeach
@endsection