コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     //         $soitems = Soitem::latest('created_at')->get();
     //         return DB::table('soitems')->selectRaw('SUM(qty * price) as total')->pluck('total');
     $receivables = Custinfo::latest('created_at')->paginate(10);
     //         $receivable->soitems->selectRaw('SUM(qty * price) as total')->pluck('total')
     //         $receivable = Custinfo::latest('created_at')->first();
     //         return $receivable;
     //         return $receivable->soitems->every(0, 1);
     return view('accounting.receivables.index', compact('receivables'));
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $custinfos = Custinfo::latest('created_at')->with('contact')->paginate(10);
     return view('custinfos.index', compact('custinfos'));
 }