@extends('admin.layout.layout') @section('content')

Subadmins

{{ $title }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(Session::has('error_message')) @endif @if(Session::has('success_message')) @endif
@csrf @if(!empty($subadminRoles)) @foreach($subadminRoles as $role) @if($role['module']=="cms_pages") @if($role['view_access']==1) @php $viewCMSPages = "checked" @endphp @else @php $viewCMSPages = "" @endphp @endif @if($role['edit_access']==1) @php $editCMSPages = "checked" @endphp @else @php $editCMSPages = "" @endphp @endif @if($role['full_access']==1) @php $fullCMSPages = "checked" @endphp @else @php $fullCMSPages = "" @endphp @endif @endif @if($role['module']=="categories") @if($role['view_access']==1) @php $viewCategories = "checked" @endphp @else @php $viewCategories = "" @endphp @endif @if($role['edit_access']==1) @php $editCategories = "checked" @endphp @else @php $editCategories = "" @endphp @endif @if($role['full_access']==1) @php $fullCategories = "checked" @endphp @else @php $fullCategories = "" @endphp @endif @endif @if($role['module']=="products") @if($role['view_access']==1) @php $viewProducts = "checked" @endphp @else @php $viewProducts = "" @endphp @endif @if($role['edit_access']==1) @php $editProducts = "checked" @endphp @else @php $editProducts = "" @endphp @endif @if($role['full_access']==1) @php $fullProducts = "checked" @endphp @else @php $fullProducts = "" @endphp @endif @endif @if($role['module']=="brands") @if($role['view_access']==1) @php $viewBrands = "checked" @endphp @else @php $viewBrands = "" @endphp @endif @if($role['edit_access']==1) @php $editBrands = "checked" @endphp @else @php $editBrands = "" @endphp @endif @if($role['full_access']==1) @php $fullBrands = "checked" @endphp @else @php $fullBrands = "" @endphp @endif @endif @if($role['module']=="banners") @if($role['view_access']==1) @php $viewBanners = "checked" @endphp @else @php $viewBanners = "" @endphp @endif @if($role['edit_access']==1) @php $editBanners = "checked" @endphp @else @php $editBanners = "" @endphp @endif @if($role['full_access']==1) @php $fullBanners = "checked" @endphp @else @php $fullBanners = "" @endphp @endif @endif @if($role['module']=="coupons") @if($role['view_access']==1) @php $viewCoupons = "checked" @endphp @else @php $viewCoupons = "" @endphp @endif @if($role['edit_access']==1) @php $editCoupons = "checked" @endphp @else @php $editCoupons = "" @endphp @endif @if($role['full_access']==1) @php $fullCoupons = "checked" @endphp @else @php $fullCoupons = "" @endphp @endif @endif @if($role['module']=="orders") @if($role['view_access']==1) @php $viewOrders = "checked" @endphp @else @php $viewOrders = "" @endphp @endif @if($role['edit_access']==1) @php $editOrders = "checked" @endphp @else @php $editOrders = "" @endphp @endif @if($role['full_access']==1) @php $fullOrders = "checked" @endphp @else @php $fullOrders = "" @endphp @endif @endif @if($role['module']=="users") @if($role['view_access']==1) @php $viewUsers = "checked" @endphp @else @php $viewUsers = "" @endphp @endif @if($role['edit_access']==1) @php $editUsers = "checked" @endphp @else @php $editUsers = "" @endphp @endif @if($role['full_access']==1) @php $fullUsers = "checked" @endphp @else @php $fullUsers = "" @endphp @endif @endif @if($role['module']=="widget") @if($role['view_access']==1) @php $viewWidget = "checked" @endphp @else @php $viewWidget = "" @endphp @endif @if($role['edit_access']==1) @php $editWidget = "checked" @endphp @else @php $editWidget = "" @endphp @endif @if($role['full_access']==1) @php $fullWidget = "checked" @endphp @else @php $fullWidget = "" @endphp @endif @endif @endforeach @endif
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 View Access       View/Edit Access       Full Access     
 Full Access     
@endsection