@php $operation = $this->operation; $patientName = $operation->patient?->name ?? '-'; $operationName = $operation->name ?? '-'; $operationDate = $operation->data_intervento ? \Illuminate\Support\Carbon::parse($operation->data_intervento)->format('d/m/Y') : '-'; $operationDateFilter = $operation->data_intervento ? \Illuminate\Support\Carbon::parse($operation->data_intervento)->format('Y-m-d') : null; $notificationFilters = [ 'patient_id' => ['value' => $operation->patient_id], 'operation_id' => ['value' => $operation->id], 'answered' => ['value' => 0], ]; if ($operationDateFilter) { $notificationFilters['send_at'] = ['send_at' => $operationDateFilter]; } $notificationsUrl = \App\Filament\Resources\NotificationResource::getUrl('index', [ 'tableFilters' => $notificationFilters, ]); @endphp
Paziente: {{ $patientName }}
Intervento: {{ $operationName }}
Data: {{ $operationDate }}
Compila t0
{{ $this->form }}
Salva questionari