public function getBatchd() { $batches = Batch::where('documentType', 'batch')->get(); //$batch = unserialize(Session::get('batch')); //dd($batch); //if(!isset($batch)) $selectedbatchid = ''; //else $selectedbatchid = $batch->_id; //dd($selectedbatchid); return View::make('job2.tabs.batch')->with('batches', $batches)->with('selectedbatchid', ''); }
public function getBatch() { $batches = Batch::where('documentType', 'batch')->get(); $batch = unserialize(Session::get('batch')); if (!$batch) { $selectedbatchid = ''; } else { $selectedbatchid = $batch->_id; } return View::make('job.tabs.batch')->with('batches', $batches)->with('selectedbatchid', $selectedbatchid); }