@extends('layouts.app') @section('content') @php $routeCompany = request()->route('company'); $currentCompany = app()->bound('current_company') ? app('current_company') : null; $companyUuid = $currentCompany?->uuid ?? (is_object($routeCompany) ? ($routeCompany->uuid ?? null) : null) ?? (is_string($routeCompany) ? $routeCompany : null) ?? auth()->user()?->company?->uuid; @endphp

{{ __('roles.title') }}

@can('Create:Role') {{ __('roles.add') }} @endcan
@forelse($roles as $role) @empty @endforelse
{{ __('common.name') }} {{ __('messages.created_at') }} {{ __('common.actions') }}
{{ \Illuminate\Support\Facades\Lang::has('roles.names.' . $role->name) ? __('roles.names.' . $role->name) : $role->name }} {{ $role->created_at?->format('d.m.Y H:i') }}
@can('Update:Role') @endcan @can('Delete:Role')
@csrf @method('DELETE')
@endcan
{{ __('roles.no_roles') }}
{{ __('common.showing_entries', ['from' => $roles->firstItem() ?? 0, 'to' => $roles->lastItem() ?? 0, 'total' => $roles->total()]) }}
    {{ $roles->links('pagination::bootstrap-5') }}
@endsection