@extends('crm.layouts.app') @section('styles') @endsection @section('content')

{{__('Manage Roles')}}

@can('create-role', User::class) @endcan
@if($errors) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif
{{-- --}}
{{__('Sr.No')}} {{__('Set Default')}} {{__('Status')}} {{__('Name')}} {{__('Created At')}} {{__('Updated At')}} {{__('Actions')}}
@if ($role->id != '1')
@csrf @method('PUT') @if ($role->default_role == 'yes') {{__('Default Role')}} @endif
@endif

{{__('Note')}}: {{__("If you 'inactive' any role, all the users with that role will also gets 'inactive' status and vice-versa.")}}
{{__("If you 'delete' any role, all the users with that role will be assigned default user role and permissions as set by the admin for that default role.")}}

@endsection @section('scripts') @include('crm.user.roles_js') @endsection