HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/appointmentbook.me/wp-content/plugins/booknetic/app/Backend/Calendar/Controller.php
<?php

namespace BookneticApp\Backend\Calendar;

use BookneticApp\Models\Location;
use BookneticApp\Models\Service;
use BookneticApp\Models\Staff;
use BookneticApp\Providers\Core\Capabilities;
use BookneticApp\Providers\Helpers\Helper;

class Controller extends \BookneticApp\Providers\Core\Controller
{

	public function index()
	{
		Capabilities::must( 'calendar' );

		$locations	= Location::fetchAll();
		$services	= Service::fetchAll();
		$staff		= Staff::fetchAll();
		$payments   = Helper::getPaymentStatuses();
		$statuses   = Helper::getAppointmentStatuses();

		$this->view( 'index' , [
			'locations'	=> $locations,
			'services'	=> $services,
			'staff'		=> $staff,
			'statuses'  => $statuses,
			'payments'  => $payments
		] );
	}

}