@extends('layouts.admin.app') @section('title', translate('Create Role')) @push('css_or_js') @endpush @section('content')

{{translate('employee_role_setup')}}

{{translate('Role_Form')}}
@csrf
{{translate('Module_Permission')}} :
@foreach(MANAGEMENT_SECTION as $section)
@endforeach
{{translate('Employee_Role_Table')}} {{$rl->count()}}
@foreach($rl as $k=>$r) @csrf @method('DELETE') @endforeach
{{translate('SL')}} {{translate('role_name')}} {{translate('modules')}} {{translate('created_at')}} {{translate('status')}} {{translate('action')}}
{{$loop->iteration}} {{$r['name']}}
@if($r['module_access']!=null) @php($comma = '') @foreach((array)json_decode($r['module_access']) as $m) {{$comma}}{{str_replace('_',' ',$m)}} @php($comma = ', ') @endforeach @endif
{{date('d-M-Y',strtotime($r['created_at']))}}
@endsection @push('script') @endpush