feat: add lab tests, patient file management, and prescription improvements

This commit is contained in:
SajjadMahmoody
2026-04-17 20:15:38 +03:30
parent 6a301c5529
commit bf0ada051f
53 changed files with 3201 additions and 387 deletions
@@ -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(),
);
}),
];
}