⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
mydetails.com.ng
/
app
/
Models
/
View File Name :
ScheduleAppointment.php
'string', 'email' => 'string', 'date' => 'string', 'phone' => 'string', 'from_time' => 'string', 'to_time' => 'string', 'vcard_id' => 'integer', 'appointment_tran_id' => 'integer', 'status' => 'integer', ]; public static $rules = [ 'name' => 'required|min:2', 'email' => 'required|email:filter', 'phone' => 'required|nullable|numeric|min:0', ]; const FREE = 0; const PAID = 1; const ALL = 3; const TYPES = [ self::ALL => 'All', self::FREE => 'Free', self::PAID => 'Paid', ]; const PENDING = 0; const COMPLETED = 1; const STATUS_ALL = 3; const STATUS = [ self::STATUS_ALL => 'All', self::PENDING => 'Pending', self::COMPLETED => 'Completed', ]; protected $appends = ['paid_amount']; public function getPaidAmountAttribute(): string { $transaction = $this->appointmentTransaction; if ($transaction) { return getCurrencyAmount($transaction->currency_symbol, $transaction->amount); } return ''; } public function vcard(): BelongsTo { return $this->belongsTo(Vcard::class); } public function appointmentTransaction(): BelongsTo { return $this->belongsTo(AppointmentTransaction::class, 'appointment_tran_id'); } }