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:
@@ -1,4 +1,4 @@
|
||||
@extends('admin.main')
|
||||
@extends('administrator.layout.master')
|
||||
@section('styles')
|
||||
<style>
|
||||
.addon-list {
|
||||
@@ -91,7 +91,7 @@
|
||||
<div class="row form-group">
|
||||
<div class="col-md-12 text-center">
|
||||
<form class="d-lg-inline"
|
||||
action="{{ route('admin.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
action="{{ route('administrator.pages.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
@method('put')
|
||||
@csrf
|
||||
<input type="hidden" name="action" value="Paid">
|
||||
@@ -103,7 +103,7 @@
|
||||
</button>
|
||||
</form>
|
||||
<form class="d-lg-inline"
|
||||
action="{{ route('admin.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
action="{{ route('administrator.pages.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
@method('put')
|
||||
@csrf
|
||||
<input type="hidden" name="action" value="Cancel">
|
||||
@@ -111,7 +111,7 @@
|
||||
</button>
|
||||
</form>
|
||||
<form class="d-lg-inline"
|
||||
action="{{ route('admin.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
action="{{ route('administrator.pages.invoice.update', ['id' => $invoice->id]) }}" method="post">
|
||||
@method('put')
|
||||
@csrf
|
||||
<input type="hidden" name="action" value="UnPaid">
|
||||
|
||||
Reference in New Issue
Block a user