/**
  * Handle the event.
  *
  * @param  UserAuthenticated  $event
  * @return void
  */
 public function handle(DelayOrderAccepted $event)
 {
     $delay_order = $event->order;
     //add student history
     $student = student::findOrFail($delay_order->student_id);
     StudentHistory::where('academycycle_semester_id', $delay_order->semester_id)->where('student_id', $delay_order->student_id)->update(['state' => 'delayed']);
     /*
             StudentHistory::insert([
                 'academycycle_semester_id' => $delay_order->semester_id,
                 'student_id' => $delay_order->student_id,
                 'state' => 'delayed',
                 'study_state' => 'stop',
                 'academystructure_department_id' => $student->academystructure_department_id
                 ]);   
     */
 }