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:
@@ -29,7 +29,7 @@
|
||||
<div class="d-flex justify-content-between align-items-baseline">
|
||||
<h6 class="card-title mb-0">Pending Orders</h6>
|
||||
<div class="dropdown mb-2">
|
||||
<a href="{{ route('admin.order.index', ['status' => 'unpaid']) }}" class="text-muted">
|
||||
<a href="{{ route('administrator.pages.order.index', ['status' => 'unpaid']) }}" class="text-muted">
|
||||
<i data-lucide="external-link" class="icon-sm"></i>
|
||||
</a>
|
||||
</div>
|
||||
@@ -53,7 +53,7 @@
|
||||
<div class="d-flex justify-content-between align-items-baseline">
|
||||
<h6 class="card-title mb-0">Invoices Pending</h6>
|
||||
<div class="dropdown mb-2">
|
||||
<a href="{{ route('admin.invoice.index', ['status' => 'unpaid']) }}" class="text-muted">
|
||||
<a href="{{ route('administrator.pages.invoice.index', ['status' => 'unpaid']) }}" class="text-muted">
|
||||
<i data-lucide="external-link" class="icon-sm"></i>
|
||||
</a>
|
||||
</div>
|
||||
@@ -172,7 +172,7 @@
|
||||
<div class="d-flex flex-column">
|
||||
@if (count($orders) > 0)
|
||||
@foreach ($orders as $item)
|
||||
<a href="{{ route('admin.order.edit', ['id' => $item->id]) }}"
|
||||
<a href="{{ route('administrator.pages.order.edit', ['id' => $item->id]) }}"
|
||||
class="d-flex align-items-center border-bottom p-3">
|
||||
<div class="me-3">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user