/**
  * Execute the job.
  *
  * @return void
  */
 public function handle(PackageRepositoryInterface $package)
 {
     $selectedPackage = $package->find($this->package_id);
     $item = ['id' => $selectedPackage->id, 'name' => $selectedPackage->name, 'qty' => (int) $this->quantity, 'price' => $selectedPackage->adult_price, 'options' => ['child_quantity' => $this->child_quantity, 'date' => $this->date, 'date_submit' => $this->date_submit, 'selectedPackage' => $selectedPackage]];
     Booking::add($item);
     return $item;
 }
 private function addNewItem()
 {
     $package = factory(App\Package::class)->create();
     $item = ['id' => $package->id, 'name' => $package->name, 'qty' => 2, 'price' => $package->adult_price, 'options' => ['child_quantity' => 1, 'date' => 'February 11, 2016', 'date_submit' => '', 'selectedPackage' => $package]];
     return Booking::add($item);
 }
 public function destroy($rowId)
 {
     Booking::remove($rowId);
     return Booking::content();
 }
 public function total()
 {
     return Booking::total();
 }