| Server IP : 77.68.64.20 / Your IP : 216.73.217.31 Web Server : Apache System : Linux hp3-wp-1011317.hostingp3.local 3.10.0-1160.144.1.el7.tuxcare.els8.x86_64 #1 SMP Sun Jul 5 17:25:39 UTC 2026 x86_64 User : csh2392878 ( 2033753) PHP Version : 8.3.30 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/domains/vol1/746/2880746/user/htdocs/wp-content/plugins/booknetic/app/Models/ |
Upload File : |
<?php
namespace BookneticApp\Models;
use BookneticApp\Providers\DB\Auditable;
use BookneticApp\Providers\DB\Model;
use BookneticApp\Providers\DB\MultiTenant;
use BookneticApp\Providers\Translation\Translator;
/**
* @property-read int $id
* @property-read string $name
* @property-read float $price
* @property-read int $category_id
* @property-read int $is_visible
* @property-read int $duration
* @property-read int $timeslot_length
* @property-read int $buffer_before
* @property-read int $buffer_after
* @property-read string $notes
* @property-read string $image
* @property-read int $is_recurring
* @property-read string $full_period_type
* @property-read int $full_period_value
* @property-read string $repeat_type
* @property-read string $recurring_payment_type
* @property-read int $repeat_frequency
* @property-read int $max_capacity
* @property-read string $color
* @property-read string $deposit_type
* @property-read float $deposit
* @property-read int $is_active
* @property-read int $hide_price
* @property-read int $hide_duration
* @property-read int $tenant_id
*/
class Service extends Model
{
use Translator, MultiTenant, Auditable{
MultiTenant::booted as private tenantBoot;
Auditable::booted as private auditBoot;
}
protected static $translations = [ 'name', 'note' ];
public static $relations = [
'serviceStaff' => [ ServiceStaff::class ],
'extras' => [ ServiceExtra::class ],
'category' => [ ServiceCategory::class, 'id', 'category_id' ]
];
public static function booted()
{
self::$translations = apply_filters('bkntc_service_modal_translation_fields', self::$translations);
self::tenantBoot();
self::auditBoot();
/* @deprecated */
do_action('bkntc_service_model_scopes', self::class);
}
}