Пример #1
0
 public function search(Request $request)
 {
     $this->data['css_assets'] = Assets::load('css', ['lib-bootstrap', 'style', 'font-awesome', 'font-awesome-min', 'flexslider', 'color-schemes-core', 'color-schemes-turquoise', 'jquery-parallax', 'bootstrap-responsive', 'font-family']);
     $this->data['js_assets'] = Assets::load('js', ['jquery', 'jquery-ui', 'jquery-easing', 'bootstrap-min-lib', 'jquery-isotope', 'jquery-flexslider', 'jquery.elevatezoom', 'jquery-sharrre', 'jquery-gmap3', 'imagesloaded', 'la_boutique', 'jquery-cookie', 'jquery-parallax-lib']);
     $this->data['title'] = ucwords('Pencarian');
     $this->data['name'] = $request->search;
     $this->data['query'] = Product::where('name', 'like', '%' . $request->search . '%')->orderBy('DESC')->Paginate(20);
     $this->data['category'] = Category::get();
     return view('main_layout')->with('data', $this->data)->nest('content', 'search', array('data' => $this->data));
 }
Пример #2
0
 public function list_product()
 {
     $this->data['css_assets'] = Assets::load('css', ['admin_bootstrap', 'admin_css', 'font-awesome', 'skins', 'dataTables_css']);
     $this->data['js_assets'] = Assets::load('js', ['jquery', 'admin_js', 'admin_bootstrap-js', 'slimscroll', 'fastclick', 'dataTables_js', 'dataTables_bootsjs']);
     $this->data['title'] = 'Product | List';
     $this->data['product'] = Product::where('category_id', 1)->orderBy('created_at', 'DESC')->get();
     $this->data['category'] = Category::get();
     $this->data['distributor'] = Distributor::get();
     return view('admin_layout')->with('data', $this->data)->nest('content', 'admin/product/list_produk', array('data' => $this->data));
 }
Пример #3
0
 public function create()
 {
     $this->data['css_assets'] = Assets::load('css', ['admin_bootstrap', 'admin_css', 'font-awesome', 'skins', 'ionicons']);
     $this->data['js_assets'] = Assets::load('js', ['jquery', 'admin_js', 'admin_bootstrap-js', 'slimscroll', 'fastclick']);
     $this->data['title'] = 'Product | Create';
     $this->data['category'] = Category::get();
     $this->data['distributor'] = Distributor::get();
     $this->data['array'] = '';
     return view('admin_layout')->with('data', $this->data)->nest('content', 'admin/product_insert', array('data' => $this->data));
 }
Пример #4
0
 public function index()
 {
     $this->data['css_assets'] = Assets::load('css', ['lib-bootstrap', 'style', 'font-awesome', 'font-awesome-min', 'flexslider', 'color-schemes-core', 'color-schemes-turquoise', 'jquery-parallax', 'bootstrap-responsive', 'font-family']);
     $this->data['js_assets'] = Assets::load('js', ['jquery', 'jquery-ui', 'jquery-easing', 'bootstrap-min-lib', 'jquery-isotope', 'jquery-flexslider', 'jquery.elevatezoom', 'jquery-sharrre', 'jquery-gmap3', 'imagesloaded', 'la_boutique', 'jquery-cookie', 'jquery-parallax-lib']);
     $this->data['title'] = 'Home';
     $this->data['category'] = Category::get();
     $this->data['product'] = Product::where('status', 'publish')->orderBy('created_at', 'DESC')->limit(5)->get();
     $this->data['sold'] = Product::where('status', 'publish')->orderBy('sold', 'DESC')->limit(5)->get();
     $this->data['banner'] = Option::where('meta_key', 'banner_home')->first();
     return view('main_layout')->with('data', $this->data)->nest('content', 'home', array('data' => $this->data));
 }
Пример #5
0
 public function list_banner()
 {
     $this->data['css_assets'] = Assets::load('css', ['admin_bootstrap', 'admin_css', 'font-awesome', 'skins', 'dataTables_css']);
     $this->data['js_assets'] = Assets::load('js', ['jquery', 'admin_js', 'admin_bootstrap-js', 'slimscroll', 'fastclick', 'dataTables_js', 'dataTables_bootsjs']);
     $this->data['title'] = 'Banner | List';
     $this->data['categories'] = Category::get();
     return view('admin_layout')->with('data', $this->data)->nest('content', 'admin/setting/list_banner', array('data' => $this->data));
 }