/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $receipt = Receipt::find($id); $suppliers = Supplier::all()->lists('name', 'id'); $commodities = Commodity::all()->lists('name', 'id'); return View::make('receipt.edit')->with('receipt', $receipt)->with('commodities', $commodities)->with('suppliers', $suppliers); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $all = Supplier::all(); $op = array(); foreach ($all as $data) { $op[] = array("{$data->id}", $data->supp_name, $data->contact_f, $data->email, $data->supp_mgm, "{$data->created_at}", "action"); } return json_encode(array("data" => $op)); }
public function suppliers() { $ids = DB::table('tblSuppliers')->select('strSuppID')->orderBy('updated_at', 'desc')->orderBy('strSuppID', 'desc')->take(1)->get(); $ID = $ids["0"]->strSuppID; $newID = $this->smart($ID); // Get all products from the database $suppliers = Supplier::all(); return View::make('suppliers')->with('suppliers', $suppliers)->with('newID', $newID); }
public function suppliers() { // Get all products from the database $suppliers = Supplier::all(); return View::make('suppliers')->with('suppliers', $suppliers); }
/** * getPackageDetailModal (拆包) */ public function getPackageDetailModal() { $suppliers = Supplier::all(); return View::make('admin.itemreceive.packagedetailmodal')->with('suppliers', $suppliers); }
public function allSuppliers() { $suppliers = Supplier::all()->toArray(); var_dump($suppliers); }
public function get_ps() { $this->data['create'] = true; $this->data['suppliers'] = Koki::to_dropdown(Supplier::all(), 'id', 'company_name'); //var_dump($this->data['suppliers'] ); return View::make('themes.modul.' . $this->views . '.penerimaansp-jquery', $this->data); }
/** * Display a listing of suppliers * * @return Response */ public function index() { $suppliers = Supplier::all(); return View::make('admin.suppliers.index', compact('suppliers')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $suppliers = Supplier::all(); return View::make('supplier.supplier', ['suppliers' => $suppliers]); }
<h3 class="modal_title pull-left">Please Make a new order. </h3> <a href="javascript:void(0)" class=" modal-action modal-close pull-right"><i class="fa fa-times"></i></a> <div class="clearfix"></div> </div> <div class="modal_body"> <div class="insert_form row"> <form action="javascript:void(0)" id="form_newOrder"> <div class="input-field col s6"> <input placeholder="Select Date" id="newOrdDate" type="text" name="newOrdDate"> <label for="cusFirstName">Date : </label> </div> <div class="input-field col s6"> <select class="browser-default" id="newOrderSupp" name="newOrderSupp"> <option value="" selected>Select Supplier</option> <?php $dataX = Supplier::all(); ?> @foreach($dataX as $dx) <option value="{{$dx->id}}">{{$dx->supp_name}} - ( {{$dx->id}} )</option> @endforeach </select> </div> <div class="input-field col s12"> <textarea placeholder="Add Comment" id="newOrderComment" name="newOrderComment" class="materialize-textarea"></textarea> <label for="eng_no">Comment</label> </div> <div class="input-field col s6"> <input placeholder="0123456789" id="newOrderAmmount" type="text" name="newOrderAmmount"> <label for="eng_no">Ammount</label> </div> <div class="input-field col s6">