Initial commit - Physiotherapy Clinic Management System
This commit is contained in:
commit
dbb326f2cc
300 files changed
+144285
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
|
||||
class ReminderResource extends JsonResource
|
||||
{
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'appointment_id' => $this->appointment_id,
|
||||
'patient' => [
|
||||
'id' => $this->appointment->patient->id,
|
||||
'name' => $this->appointment->patient->fullName(),
|
||||
],
|
||||
'channel' => $this->channel,
|
||||
'content' => $this->content,
|
||||
'send_at' => $this->send_at?->format('Y-m-d H:i:s'),
|
||||
'sent_at' => $this->sent_at?->format('Y-m-d H:i:s'),
|
||||
'status' => $this->status,
|
||||
'error_message' => $this->error_message,
|
||||
'response' => $this->response,
|
||||
'created_at' => $this->created_at?->format('Y-m-d H:i:s'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user