@@ -180,7 +180,12 @@ class ManageSubAdminController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function get_sub_admin_permission(Request $request)
|
||||
{
|
||||
$testing_admin_id = $request->id;
|
||||
$test = ManageModuleLink::where('principal_xid', $testing_admin_id)->get('manage_modules_xid')->toArray();
|
||||
return response()->json(['success' => true, 'data' => $test]);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -100,58 +100,59 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-users'))
|
||||
<button class="dropdown-btn-users mb-1">
|
||||
<div class="icons d-flex align-items-center justify-content-start w-100">
|
||||
<img src="{{ asset('public/assets/img/Group 57904.svg') }}" />
|
||||
<span class="text-1">Manage Users</span>
|
||||
</div>
|
||||
<i class="fa fa-angle-down mr-3" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
<button class="dropdown-btn-users mb-1">
|
||||
<div class="icons d-flex align-items-center justify-content-start w-100">
|
||||
<img src="{{ asset('public/assets/img/Group 57904.svg') }}" />
|
||||
<span class="text-1">Manage Users</span>
|
||||
<div class="dropdown-container">
|
||||
<ul>
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-patient') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('manage.customer') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/single-user.svg') }}" />
|
||||
<span class="text">Customer App</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-restaurant_app') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('restraunt_users') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/restraunt.svg') }}" />
|
||||
<span class="text">Restaurant App</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'sub-admins') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('manage.subAdmin') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/Group 57906.svg') }}">
|
||||
<span class=" text">Sub Admins</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<i class="fa fa-angle-down mr-3" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
<div class="dropdown-container">
|
||||
<ul>
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-patient') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('manage.customer') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/single-user.svg') }}" />
|
||||
<span class="text">Customer App</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-restaurant_app') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('restraunt_users') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/restraunt.svg') }}" />
|
||||
<span class="text">Restaurant App</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'sub-admins') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="1">
|
||||
<a href="{{ route('manage.subAdmin') }}" data-active="1">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/Group 57906.svg') }}">
|
||||
<span class=" text">Sub Admins</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
@@ -167,25 +168,25 @@
|
||||
</div>
|
||||
</a>
|
||||
</li> --}}
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-restaurant'))
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-vouchers') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="3">
|
||||
<a href="{{ route('manage.restaurants') }}" data-active="3">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/coupon 1.svg') }}" />
|
||||
<span class="text">Manage Restaurant</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-vouchers') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="3">
|
||||
<a href="{{ route('manage.restaurants') }}" data-active="3">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/coupon 1.svg') }}" />
|
||||
<span class="text">Manage Restaurant</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{{-- <li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-vouchers') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="3">
|
||||
{{-- <li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-vouchers') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="3">
|
||||
<a href="{{ route('manage.voucher') }}" data-active="3">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/fluent-mdl2_coupon.svg') }}" >
|
||||
@@ -193,20 +194,21 @@
|
||||
</div>
|
||||
</a>
|
||||
</li> --}}
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-contact') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="4">
|
||||
<a href="{{ route('manage.contact') }}" data-active="4">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/call(1) 3.svg') }}" />
|
||||
<span class="text">Manage Contact Us</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-contact-us'))
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-contact') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="4">
|
||||
<a href="{{ route('manage.contact') }}" data-active="4">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/call(1) 3.svg') }}" />
|
||||
<span class="text">Manage Contact Us</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
|
||||
<!-- <button class="dropdown-btn-users mb-1">
|
||||
@@ -300,19 +302,21 @@
|
||||
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-cms') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="7">
|
||||
<a href="{{ route('manage.cms') }}" data-active="7">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/article-line.svg') }}" />
|
||||
<span class="text">Manage CMS</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-cms'))
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-cms') {
|
||||
echo 'active';
|
||||
}
|
||||
?>" data-tooltip="7">
|
||||
<a href="{{ route('manage.cms') }}" data-active="7">
|
||||
<div class="icons">
|
||||
<img src="{{ asset('public/assets/img/article-line.svg') }}" />
|
||||
<span class="text">Manage CMS</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-reports-analysis'))
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-reports') {
|
||||
@@ -326,6 +330,9 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-feedback'))
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-feedback') {
|
||||
@@ -339,6 +346,9 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if (Auth::guard('admin')->user()->getPermissionGranted(Auth::guard('admin')->user()->id, 'manage-notification'))
|
||||
|
||||
<li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-notification') {
|
||||
@@ -353,6 +363,7 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@endif
|
||||
|
||||
<!-- <li class="tooltip-element <?php
|
||||
if ($currentPage == 'manage-subscription') {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<th class="text-center">Sr no</th>
|
||||
<th class="text-center">Restaurant Name</th>
|
||||
<th class="text-center">Restaurant ID</th>
|
||||
<th class="text-center">Image </th>
|
||||
{{-- <th class="text-center">Image </th> --}}
|
||||
<th class="text-center">Status</th>
|
||||
<th class="no-content">Action</th>
|
||||
</tr>
|
||||
@@ -61,8 +61,8 @@
|
||||
<td class="text-center">{{ $count }}</td>
|
||||
<td class="text-center">{{ $restaurants->name }}</td>
|
||||
<td class="text-center">{{ $restaurants->restaurant_id }}</td>
|
||||
<td><img src="{{ ListingImageUrl('restaurant_images', $restaurants['image']) }}"
|
||||
height="50px" width="50px"></td>
|
||||
{{-- <td><img src="{{ ListingImageUrl('restaurant_images', $restaurants['image']) }}"
|
||||
height="50px" width="50px"></td> --}}
|
||||
|
||||
{{-- <td>
|
||||
<div class="switch-btn">
|
||||
|
||||
Reference in New Issue
Block a user