/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     // $id = $this->po->max('id');
     // $id = $id === null ? 1 : $id + 1;
     $supplier = Supplier::get(['id', 'nama'])->toArray();
     // $pr = $this->pr->get(['id'])->toArray();
     // $terms = SyaratPembayaran::all()->toArray();
     $pajak = Pajak::all()->toArray();
     // $akun = Akun::all()->toArray();
     return view('pembelian.pt.create', compact('supplier', 'pajak'));
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $data = Supplier::get(['id', 'nama', 'alamat', 'telepon1', 'contact_person', 'telepon1_cp'])->toArray();
     //return view('pre', compact('data'));
     return view('supplier.index', compact('data'));
 }