@@ -10,9 +10,9 @@ |
||
10 | 10 | |
11 | 11 | class DetailTypeSeeder extends Seeder |
12 | 12 | { |
13 | - public function run(){ |
|
14 | - foreach (DetailTypes::all() as $detail) { |
|
15 | - DB::table('detail_type')->insert(['name' => $detail]); |
|
16 | - } |
|
17 | - } |
|
13 | + public function run(){ |
|
14 | + foreach (DetailTypes::all() as $detail) { |
|
15 | + DB::table('detail_type')->insert(['name' => $detail]); |
|
16 | + } |
|
17 | + } |
|
18 | 18 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | class SettingsSeeder extends Seeder |
13 | 13 | { |
14 | - public function run(){ |
|
14 | + public function run(){ |
|
15 | 15 | $settings = new AdminSetting(); |
16 | 16 | $settings->shop_name = 'MongiCommerce'; |
17 | 17 | $settings->iban = 'DE79100110012626219557'; |
@@ -26,5 +26,5 @@ discard block |
||
26 | 26 | $settings->claim_email = '[email protected]'; |
27 | 27 | $settings->piva = '12345678901'; |
28 | 28 | $settings->save(); |
29 | - } |
|
29 | + } |
|
30 | 30 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | *-----SHOP------* |
32 | 32 | *****************/ |
33 | 33 | |
34 | - /* |
|
34 | + /* |
|
35 | 35 | AUTH |
36 | 36 | */ |
37 | 37 | Route::get('/page/register', [ShopRegisterController::class, 'create'])->name('shop.register'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | //orders |
91 | 91 | Route::get('/admin/ordini',[AdminOrdersController::class,'page'])->name('admin.orders.list'); |
92 | 92 | Route::get('/admin/ordine/{order_id}',[AdminOrderDetailsController::class,'page'])->name('admin.order'); |
93 | - Route::get('/admin/clienti',[AdminClientsController::class,'page'])->name('admin.clients'); |
|
93 | + Route::get('/admin/clienti',[AdminClientsController::class,'page'])->name('admin.clients'); |
|
94 | 94 | |
95 | 95 | |
96 | 96 |
@@ -135,7 +135,7 @@ |
||
135 | 135 | |
136 | 136 | } |
137 | 137 | |
138 | - public function normalPayment(Request $r){ |
|
138 | + public function normalPayment(Request $r){ |
|
139 | 139 | $type = $r->get('type_payment'); |
140 | 140 | switch ($type){ |
141 | 141 | case 'iban': |
@@ -7,12 +7,12 @@ |
||
7 | 7 | |
8 | 8 | class ShopLogoutController extends AuthenticatedSessionController |
9 | 9 | { |
10 | - /** |
|
11 | - * Destroy an authenticated session. |
|
12 | - * |
|
13 | - * @param \Illuminate\Http\Request $request |
|
14 | - * @return \Illuminate\Http\RedirectResponse |
|
15 | - */ |
|
10 | + /** |
|
11 | + * Destroy an authenticated session. |
|
12 | + * |
|
13 | + * @param \Illuminate\Http\Request $request |
|
14 | + * @return \Illuminate\Http\RedirectResponse |
|
15 | + */ |
|
16 | 16 | public function destroy(Request $request) |
17 | 17 | { |
18 | 18 | Auth::guard('web')->logout(); |
@@ -7,20 +7,20 @@ |
||
7 | 7 | |
8 | 8 | class ShopSingleProductController extends Controller |
9 | 9 | { |
10 | - public function page($id,$product_item_id = null){ |
|
11 | - $product = Product::find($id); |
|
12 | - if($product_item_id == null){ |
|
13 | - return redirect()->route('shop.single.product',[$product->id,$product->items->first()->id]); |
|
14 | - } |
|
10 | + public function page($id,$product_item_id = null){ |
|
11 | + $product = Product::find($id); |
|
12 | + if($product_item_id == null){ |
|
13 | + return redirect()->route('shop.single.product',[$product->id,$product->items->first()->id]); |
|
14 | + } |
|
15 | 15 | |
16 | - $details_fields = Template::getDetailsFields($product,$product_item_id); |
|
17 | - $configuration_fields = Template::getConfigurationFields($product_item_id); |
|
18 | - $btn_cart = Template::buttonCart($product_item_id); |
|
19 | - $price = Product::getPrice($product_item_id); |
|
20 | - $image = Product::getImage($product_item_id); |
|
21 | - $description = Product::getDescription($product_item_id); |
|
22 | - $name = Product::getName($product_item_id); |
|
16 | + $details_fields = Template::getDetailsFields($product,$product_item_id); |
|
17 | + $configuration_fields = Template::getConfigurationFields($product_item_id); |
|
18 | + $btn_cart = Template::buttonCart($product_item_id); |
|
19 | + $price = Product::getPrice($product_item_id); |
|
20 | + $image = Product::getImage($product_item_id); |
|
21 | + $description = Product::getDescription($product_item_id); |
|
22 | + $name = Product::getName($product_item_id); |
|
23 | 23 | |
24 | - return view('mongicommerce.pages.single-product',compact('product','details_fields','configuration_fields','btn_cart','price','image','description','name')); |
|
25 | - } |
|
24 | + return view('mongicommerce.pages.single-product',compact('product','details_fields','configuration_fields','btn_cart','price','image','description','name')); |
|
25 | + } |
|
26 | 26 | } |