fixing styles

This commit is contained in:
ludo
2024-01-07 20:42:37 +01:00
parent 5144c1f7fd
commit 4df8628a3e
39 changed files with 149 additions and 326 deletions

View File

@@ -9,8 +9,10 @@ class ArticleController extends Controller
{
public function show($id)
{
$data['article'] = Articles::getArticleToSell($id);
$data['offers2'] = Articles::getSiblings($id)->toArray();
$data = [
'article' => Articles::getArticleToSell($id),
'offers2' => Articles::getSiblings($id)->toArray(),
];
return view('Shop.Articles.show', $data);
}

View File

@@ -33,7 +33,7 @@ class LoginController extends Controller
if ($this->guard()->attempt($credentials, $request->get('remember'))) {
$request->session()->regenerate();
return (back()->getTargetUrl() === route('Shop.login')) ? redirect()->intended(route('home')) : back();
return back()->getTargetUrl() === route('Shop.login') ? redirect()->intended(route('home')) : back();
}
return back()->withErrors([
@@ -59,5 +59,4 @@ class LoginController extends Controller
{
return Auth::guard('customer');
}
}

View File

@@ -31,8 +31,8 @@ class RegisterController extends Controller
}
return $request->wantsJson()
? new JsonResponse([], 201)
: redirect($this->redirectPath());
? new JsonResponse([], 201)
: redirect($this->redirectPath());
}
public function emailVerify()
@@ -75,5 +75,4 @@ class RegisterController extends Controller
{
return route(config('boilerplate.app.redirectTo', 'boilerplate.dashboard'));
}
}

View File

@@ -68,7 +68,9 @@ class BasketController extends Controller
public function getBasketTotal($deliveryId = false, $deliveryTypeId = false)
{
$data['basket'] = Baskets::getBasketTotal($deliveryId, $deliveryTypeId);
$data = [
'basket' => Baskets::getBasketTotal($deliveryId, $deliveryTypeId),
];
return view('Shop.Baskets.partials.basketTotal', $data);
}

View File

@@ -18,7 +18,9 @@ class CustomerController extends Controller
public function modalProfile($id = false)
{
$data['customer'] = Customers::get($id);
$data = [
'customer' => Customers::get($id),
];
return view('Shop.Customers.partials.registration', $data);
}
@@ -26,7 +28,9 @@ class CustomerController extends Controller
public function edit()
{
$id = Auth::id();
$data['customer'] = Customers::edit($id);
$data = [
'customer' => Customers::edit($id),
];
return view('Shop.Customers.edit', $data);
}
@@ -42,8 +46,6 @@ class CustomerController extends Controller
public function store(Request $request)
{
$data = $request->all();
dump($data);
exit;
$customer = Customers::storeFull($data);
return response()->json(['error' => 0]);

View File

@@ -23,7 +23,9 @@ class InvoiceController extends Controller
public function pdf($uuid)
{
\Debugbar::disable();
$data['invoice'] = Invoices::getByUUID($uuid);
$data = [
'invoice' => Invoices::getByUUID($uuid),
];
$filename = 'invoice-'.$uuid.'.pdf';
return PDF::view('Shop.Invoices.pdf', $data, $filename);

View File

@@ -24,7 +24,9 @@ class OrderController extends Controller
public function view($uuid)
{
$data['order'] = Orders::view($uuid);
$data = [
'order' => Orders::view($uuid),
];
return view('Shop.Orders.view', $data);
}