feat(patient): enhance session management with billing details and service tracking

This commit is contained in:
hamed
2026-07-12 22:09:13 +03:30
parent fdce888e0e
commit f15c57d73c
4 changed files with 148 additions and 3 deletions
+5
View File
@@ -127,6 +127,11 @@ class PatientSession
'services_total_rials' => $this->servicesTotalRials,
'final_price_rials' => $this->finalPriceRials,
'payment_method' => $this->paymentMethod,
'is_paid' => $this->paymentMethod !== 'pending',
'services' => array_map(
fn(SessionService $s) => $s->toArray(),
$this->services->toArray()
),
'notes' => $this->notes,
'created_at' => $this->createdAt,
'updated_at' => $this->updatedAt,