예제 #1
0
 /**
  * Show the form for dispatching the resource to the bench.
  *
  * @return Response
  */
 public function dispatch($id)
 {
     $topupRequest = TopupRequest::find($id);
     $batches = Receipt::where('commodity_id', '=', $topupRequest->commodity_id)->lists('batch_no', 'id');
     $users = User::where('id', '!=', Auth::user()->id)->lists('name', 'id');
     return view('issue.create')->with('topupRequest', $topupRequest)->with('users', $users)->with('batches', $batches);
 }
예제 #2
0
 /**
  * @return \Illuminate\Routing\Route|null|string
  */
 public function ingnoreId()
 {
     $id = $this->route('topup');
     $commodity_id = $this->input('commodity_id');
     $test_category_id = $this->input('test_category_id');
     $user_id = $this->input('user_id');
     return TopupRequest::where(compact('id', 'commodity_id', 'test_category_id', 'user_id'))->exists() ? $id : '';
 }