@extends('layouts.vendor.app') @section('title',translate('messages.Create_Role')) @section('content')
@php($language=\App\Models\BusinessSetting::where('key','language')->first()) @php($language = $language->value ?? null) @php($defaultLang = str_replace('_', '-', app()->getLocale()))
{{translate('messages.role_form')}}
@csrf @if ($language)
@foreach(json_decode($language) as $lang)
@endforeach @else
@endif
{{translate('messages.module_permission')}} :

{{translate('messages.roles_table')}}{{$roles->total()}}
@foreach($roles as $k=>$r) @endforeach
{{translate('messages.sl#')}} {{translate('messages.role_name')}} {{translate('messages.modules')}} {{translate('messages.created_at')}} {{translate('messages.action')}}
{{$k+$roles->firstItem()}} {{Str::limit($r['name'],20,'...')}} @if($r['modules']!=null) @foreach((array)json_decode($r['modules']) as $key=>$m) @if ($m == 'bank_info') {{translate('messages.profile')}} @else {{translate(str_replace('_',' ',$m))}} @endif {{ !$loop->last ? ',' : '.'}} @endforeach @endif {{date('d-M-y',strtotime($r['created_at']))}} @if (auth('vendor_employee')?->user()?->employee_role_id != $r['id'])
@csrf @method('delete')
@else
{{ translate('N/A') }}
@endif
@if(count($roles) !== 0)
@endif
{!! $roles->links() !!}
@if(count($roles) === 0)
public
{{translate('no_data_found')}}
@endif
@endsection