public function load_shifts_view()
 {
     $message = array('title', 'description', 'shift', 'create_shift', 'start_time', 'end_time', 'edit', 'delete', 'are_you_sure', 'yes', 'cancel');
     $data = $this->common->set_language_and_data('shifts', $message);
     $shifts = Shifts_model::get_all_shifts();
     $data['shifts'] = $shifts;
     $this->common->load_view('admin/shifts/shifts', $data);
 }
 public function load_home_view()
 {
     $message = array('title', 'total_users', 'total_categories', 'lastest_comments', 'live_attendant_status', 'total_shifts', 'total_tables', 'total_dishes', 'total_floors', 'total_menus', 'shift', 'search', 'normal_day', 'vegan_day', 'list_tables', 'create_log', 'status', 'attend', 'absent', 'late', 'choose_status', 'note', 'private_note', 'lunch_date', 'actual_meals', 'log', 'for_vegan', 'for_normal', 'yes', 'cancel');
     $data = $this->common->set_language_and_data('home', $message);
     $this->load->model('shifts_model');
     $this->load->model('tracking_users_model');
     $data['shifts'] = Shifts_model::get_all_shifts();
     $data['status'] = Tracking_users_model::get_all_status();
     $this->common->load_view('admin/home', $data);
 }
 public function load_new_announcement_view()
 {
     $message = array('title', 'lunch_date', 'subject', 'content', 'announcement_for', 'user', 'name', 'table', 'table_name', 'shift', 'shift_name', 'send');
     $data = $this->common->set_language_and_data('new_announcement', $message);
     $this->load->model('tables_model');
     $this->load->model('users_model');
     $this->load->model('shifts_model');
     $data['tables'] = Tables_model::get_all_tables();
     $data['users'] = Users_model::get_all_users();
     $data['shifts'] = Shifts_model::get_all_shifts();
     $data['choose'] = array(ANNOUNCEMENT_ALL_USER, ANNOUNCEMENT_USER, ANNOUNCEMENT_TABLE, ANNOUNCEMENT_SHIFT);
     $this->common->load_view('admin/announcements/new_announcement', $data);
 }
 public function load_edit_table_view($table_id)
 {
     $message = array('title', 'description', 'manage_tables', 'table', 'for_vegans', 'list_of_users', 'shift', 'seats', 'image', 'name', 'delete', 'are_you_sure', 'yes', 'cancel', 'floor', 'edit');
     $data = $this->common->set_language_and_data('edit_table', $message);
     $this->load->model('shifts_model');
     $data['shifts'] = Shifts_model::get_all_shifts();
     $data['table'] = Tables_model::get_table_by($table_id);
     $data['users'] = Tables_model::get_users_in_table($table_id);
     $this->common->load_view('admin/tables/edit_table', $data);
 }
 public function load_edit_user_view($user_id)
 {
     $user = Users_model::get_user_by('id', $user_id);
     $image_data['file_name'] = $user->avatar_file_name;
     $this->session->set_userdata('upload', $image_data);
     $message = array('title', 'manage_users', 'email', 'password', 'confirm_password', 'what_taste', 'edit', 'want_vegan_meal', 'first_name', 'last_name', 'floor', 'shift', 'admin', 'user', 'role', 'image_upload', 'avatar', 'change_password', 'change_shift', 'yes', 'cancel');
     $data = $this->common->set_language_and_data('edit_user', $message);
     $this->load->model('floors_model');
     $data['floors'] = Floors_model::get_all_floors();
     $this->load->model('shifts_model');
     $data['shifts'] = Shifts_model::get_all_shifts();
     $data['user'] = $user;
     $this->common->load_view('admin/users/edit_user', $data);
 }