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,10 +1,10 @@
|
||||
@php use App\Http\Helpers\Helper; @endphp
|
||||
@extends("admin.main")
|
||||
@extends("administrator.layout.master")
|
||||
@section("content")
|
||||
@if(auth()->guard('admins')->user()->can("manager order"))
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<form action="{{ route('admin.order.index') }}" method="get">
|
||||
<form action="{{ route('administrator.pages.order.index') }}" method="get">
|
||||
<div class="row form-group mb-0">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
@@ -139,7 +139,7 @@
|
||||
<input type="checkbox" name="id[]" id="" value="{{ $item->id }}">
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="{{ route("admin.order.edit",['id' => $item->id]) }}"
|
||||
<a href="{{ route("administrator.pages.order.edit",['id' => $item->id]) }}"
|
||||
title="View Order"> {{ $item->order_num }}</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@@ -164,14 +164,14 @@
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a class="btn btn-warning btn-sm"
|
||||
href="{{ route('admin.order.edit',['id' => $item->id ]) }}">
|
||||
href="{{ route('administrator.pages.order.edit',['id' => $item->id ]) }}">
|
||||
<i class="fas fa-search"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@if(auth()->guard('admins')->user()->can("delete order"))
|
||||
<form method="post" class="d-inline"
|
||||
action="{{ route('admin.order.destroy',['order' => $item->id]) }}">
|
||||
action="{{ route('administrator.pages.order.destroy',['order' => $item->id]) }}">
|
||||
@csrf
|
||||
@method('delete')
|
||||
<button type="submit" data-toggle="tooltip" data-placement="top" title=""
|
||||
|
||||
Reference in New Issue
Block a user