feat: add lab tests, patient file management, and prescription improvements
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
use Filament\Support\Enums\Width;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Morilog\Jalali\Jalalian;
|
||||
|
||||
@@ -22,7 +21,14 @@ class EditSurgeryAppointment extends EditRecord
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
DeleteAction::make(),
|
||||
DeleteAction::make()
|
||||
->before(function () {
|
||||
$record = $this->getRecord();
|
||||
\App\Filament\Pages\SmsLogsPage::cancelAppointmentMessages(
|
||||
$record->patient->hand_phone ?? '',
|
||||
$record->surgery_date->toDateTimeString(),
|
||||
);
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user