@extends('layouts.dental') @section('title', 'Pacientes') @section('content')

Pacientes

@forelse($patients as $patient) @empty @endforelse
NomeIdadeCPFCelularAções
{{ strtoupper(substr($patient->name,0,1)) }}
{{ $patient->name }}
{{ $patient->age ? $patient->age.' anos' : '—' }} {{ $patient->cpf_formatted ?? '—' }} {{ $patient->phone ? '+55 '.$patient->phone : '—' }}
@if($patient->phone)@endif
{{ request('q') ? 'Nenhum paciente encontrado para "'.request('q').'"' : 'Nenhum paciente cadastrado.' }}
{{ $patients->links() }}
@endsection