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:
pbao9
2026-02-02 10:31:11 +07:00
parent d3b264262b
commit 17b02631e4
106 changed files with 284 additions and 259 deletions
@@ -21,14 +21,14 @@ class PaymentController extends Controller
);
$title = 'List Payment';
return view('admin.payment.index', compact('payments', 'title'));
return view('administrator.pages.payment.index', compact('payments', 'title'));
}
public function create()
{
$title = 'Add new Payment Method';
return view('admin.payment.add', compact('title'));
return view('administrator.pages.payment.add', compact('title'));
}
public function store(PaymentRequest $request)
@@ -55,7 +55,7 @@ class PaymentController extends Controller
}
$title = 'Edit Payment Method';
return view('admin.payment.edit', compact('title', 'payment'));
return view('administrator.pages.payment.edit', compact('title', 'payment'));
}
public function update(int $id = 0, PaymentRequest $request)
{