Refactor views to use new layout structure and update routes for administrator pages
- Changed view extends from "admin.main" to "administrator.layout.master" across multiple files. - Updated route names in admin.php and administrator.php to reflect new structure for user, order, invoice, and other management functionalities. - Adjusted view includes to point to the new directory structure for blocks and components. - Ensured all permission checks remain intact while refactoring the views.
This commit is contained in:
@@ -26,13 +26,13 @@ class CouponController extends Controller
|
||||
|
||||
$coupons = $this->discountRepository->filter($request->merge(['page' => $request->query('page') ?? 1])->all());
|
||||
|
||||
return view("admin.coupon.index", compact('title', 'coupons'));
|
||||
return view("administrator.pages.coupon.index", compact('title', 'coupons'));
|
||||
}
|
||||
public function create()
|
||||
{
|
||||
$title = "Create new Coupon";
|
||||
|
||||
return view("admin.coupon.add", compact('title'));
|
||||
return view("administrator.pages.coupon.add", compact('title'));
|
||||
}
|
||||
public function store(CouponRequest $request)
|
||||
{
|
||||
@@ -77,7 +77,7 @@ class CouponController extends Controller
|
||||
|
||||
$title = "Edit coupon #" . $coupon->code;
|
||||
|
||||
return view("admin.coupon.edit", compact('title', 'coupon'));
|
||||
return view("administrator.pages.coupon.edit", compact('title', 'coupon'));
|
||||
}
|
||||
|
||||
public function update(int $id = 0, CouponRequest $request)
|
||||
|
||||
Reference in New Issue
Block a user