/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { //dd($request->session()->all()); $new_products = Product::with('images', 'prices', 'prices.unit')->has('images')->has('prices')->orderBy('created_at', 'desc')->take(12)->get(); $banners = Banner::all(); $page_title = "Trolleyin - The Best online store in Trichy - Right store at Right price."; return view('site/home', compact('new_products', 'categories', 'banners', 'offers', 'hotpros', 'viewpros', 'page_title')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $banners = Banner::all(); if ($banners === null) { $banners = null; } return $banners; // return \View::make('admin.manage_banners')->withBanners($banners); }
public function result($id) { $getTransaksi = Product::getTransaksi($id); $tujuan = json_decode(Ongkir::getCityById($getTransaksi['tujuan'])); $tujuan = $tujuan->rajaongkir->results; $tujuan = $tujuan->type . " " . $tujuan->city_name . " Provinsi " . $tujuan->province; $data = array('brand' => Brand::all(), 'banner' => Banner::all(), 'cart' => Cart::content(), 'total' => Cart::total(), 'download' => Download::limit(3)->offset(0)->get(), 'barang' => $getTransaksi, 'tujuan' => $tujuan, 'id' => $id, 'testimoni' => Testimoni::limit(10)->offset(0)->get()); return view('front.result', compact('data')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $dataSlider = Slider::all(); $dataFirst = Slider::first(); $dataBanner = Banner::all(); $produk = Produk::paginate(2); $tipe = Type::all(); return view('FrontEnd.home', compact('dataSlider', 'dataFirst', 'dataBanner', 'produk', 'tipe')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $banners = Banner::all(); return view('banners.index')->with('banners', $banners); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $banner = Banner::all(); return view('admin.banner', compact('banner')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('admin.banner.index')->with(['banners' => Banner::all()]); }
public function index(Request $request) { return view('admin.banner.banner_list', ['modelData' => Banner::all()]); }