/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('discount_durations')->truncate();
     DiscountDuration::create(['duration' => 'Term']);
     DiscountDuration::create(['duration' => 'Session']);
     DiscountDuration::create(['duration' => 'Always']);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit_staff_policy($id = 2)
 {
     $data['discount_policy'] = DiscountPolicy::find($id);
     $data['fee_elements'] = FeeElement::lists('name', 'id');
     $data['discount_durations'] = DiscountDuration::lists('duration', 'id')->prepend('Please select');
     return view('billing.discount_policies.edit_staff_policy', $data);
 }