示例#1
0
 public function index()
 {
     $airports = Airport::all();
     return view('backend.airport.index', compact('airports'));
 }
示例#2
0
 /**
  * Окно редактирования заказа
  */
 public function getEditOrder($order_id = null)
 {
     $this->data['order'] = Order::where('ident', '=', $order_id)->firstOrFail();
     $this->data['person'] = Person::findOrFail($this->data['order']->customer);
     $this->page->title = $this->data['person']->last_name . ' ' . $this->data['person']->first_name . ' ' . $this->data['person']->middle_name;
     $this->page->desc = 'Редактирование заказа';
     // Список операторов
     $this->data['operators'] = Operator::where('user_id', '=', $this->user->id)->lists('name', 'id');
     // Список аэропортов
     $this->data['airports'] = Airport::all()->lists('airport', 'id');
     // Кол-во пассажиров
     $this->data['passengers'] = array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10);
     return $this->render('order.edit');
 }
 public function flight()
 {
     $s['airport'] = \App\Airport::all();
     return view('reservasi.flight')->with($s);
 }