/** * Display a listing of the resource. * * @return Response */ public function index() { $receivings = Receiving::orderBy('id', 'desc')->first(); $suppliers = Supplier::lists('company_name', 'id'); return view('receiving.index')->with('receiving', $receivings)->with('supplier', $suppliers); }