public static function main() { $add_id = Request::input('add_id'); $remove_id = Request::input('remove_id'); $event_id = Request::input('event_id'); if (!empty($add_id)) { AssignManage::add_assign($add_id, $event_id); } if (!empty($remove_id)) { AssignManage::remove_assign($remove_id); } }
@extends('Member.master') @section('content') <?php use App\Http\Controllers\Assignment\AssignManage; use App\Http\Controllers\MainControllers\Date_time; $id = Route::Input('assign_id'); $status = Route::Input('status'); $root_url = dirname($_SERVER['PHP_SELF']); $event_data = AssignManage::getdata_response($id); $textstatus = AssignManage::getstatus_response($status); if (isset($event_data)) { $eventname = $event_data["event_name"]; $eventday = Date_time::convert_to_thai_format($event_data["event_date"]); } else { $eventname = ""; $eventday = ""; } ?> @if(!isset($event_data)) <script> var fullpath = window.location.href; var rootpath = window.location.origin; var splite_path = fullpath.split('/'); var subdomain = splite_path[3]; var url = rootpath+'/'+subdomain + '/'; window.location = url; </script> @endif <!-- Show login -->