app/Http/Controllers/UpdateStockCountController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
    	$purchaseOrder=PurchaseOrder::where('status', '=', 'Pending for Delivery')->get();
    	$deliveryNote=DeliveryNote::where('status', '=', 'Pending for Delivery')->get();
    	return View::make('updateStockCount.index')->with('purchaseOrder', $purchaseOrder) 
												   ->with('deliveryNote', $deliveryNote);
    }
public function index ( ) { $ purchaseOrder = PurchaseOrder :: where ( 'status' , '=' , 'Pending for Delivery' ) -> get ( ) ; $ deliveryNote = DeliveryNote :: where ( 'status' , '=' , 'Pending for Delivery' ) -> get ( ) ; return View :: make ( 'updateStockCount.index' ) -> with ( 'purchaseOrder' , $ purchaseOrder ) -> with ( 'deliveryNote' , $ deliveryNote ) ; }
Display a listing of the resource.
Display a listing of the resource .