Example #1
0
 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', '');
 }
Example #2
0
 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);
 }