@php use App\Models\ManagementRole; use App\Models\User; @endphp @extends('mainlayout.layout') @section('title') @endsection @push('css') @endpush @section('content')

shop

Details

Role Name

{{$role->name}}

Telco

@getManagementParentByRoleId($role->id)

Created By

{{User::find(ManagementRole::find(ManagementRole::where('role',$role->id)->first()->id)->first()->entered_by)->first_name}}

Created On

{{$role->created_at->format('Y-M-d')}}

Users

@if($role->hasPermissionTo('users.create')) C @endif @if($role->hasPermissionTo('users.view')) R @endif @if($role->hasPermissionTo('users.edit')) U @endif @if($role->hasPermissionTo('users.delete')) D @endif

Customers

@if($role->hasPermissionTo('customer.create')) C @endif @if($role->hasPermissionTo('customer.view')) R @endif @if($role->hasPermissionTo('customer.edit')) U @endif @if($role->hasPermissionTo('customer.delete')) D @endif

Manufacturer

@if($role->hasPermissionTo('manufacture.create')) C @endif @if($role->hasPermissionTo('manufacture.view')) R @endif @if($role->hasPermissionTo('manufacture.edit')) U @endif @if($role->hasPermissionTo('manufacture.delete')) D @endif

Devices

@if($role->hasPermissionTo('devices.create')) C @endif @if($role->hasPermissionTo('devices.view')) R @endif @if($role->hasPermissionTo('devices.edit')) U @endif @if($role->hasPermissionTo('devices.delete')) D @endif

Configuration

@if($role->hasPermissionTo('config.create')) C @endif @if($role->hasPermissionTo('config.view')) R @endif @if($role->hasPermissionTo('config.edit')) U @endif @if($role->hasPermissionTo('config.delete')) D @endif

Transactions

@if($role->hasPermissionTo('transaction.view')) R @endif
@endsection @push('scripts') @endpush