@extends(decide_template()) @section('title', $pageTitle) @section('page_styles') @endsection @section(decide_content()) @if (Session::has('msg')) @endif @if (Session::has('error-msg'))
{{ Session::get('error-msg') }}
@endif
@foreach($tokens as $token) @endforeach
@lang("api.view.table_heading.api_token") @lang("common.table_heading.description") @lang("api.view.table_heading.token_name") @lang("api.view.table_heading.user") @lang("api.view.table_heading.ip_address") @lang("api.view.table_heading.last_access") @lang("api.view.table_heading.status") @lang("api.view.table_heading.action")
{{$token->api_token}} {{$token->name}} {{$token->role_name}} {{$user->name}} ({{$user->email}}) {{$token->auth_ips}} {{$token->last_access==null?'Never':showDateTime($user->id,$token->last_access)}}
{{-- @if(!$client)
@foreach($roles as $role) @endforeach
@lang("api.view.table_heading.role_name") @lang("common.table_heading.description") @lang("common.table_heading.action")
@endif --}} @if(!$client)
@foreach($roles as $role) @endforeach
@lang("api.view.table_heading.role_name") @lang("common.table_heading.description") @lang("common.table_heading.action")
{{$role->description}}

@lang("api.view.modal.label.allowes_api_actions")

@php $permissions = getApiRolePermission($role->id); $role_permissions = $permissions['role_permission']; @endphp @foreach($permissions['api_permission'] as $permission) @php $children = $permission->apiChildrenAll; $per = []; foreach ($children as $child) $per[]= $child->id; $result = array_intersect($per, $role_permissions); @endphp @if(!empty($result))
@foreach($children as $child) @if(in_array($child->id,$role_permissions)) {{$child->title}} @endif @endforeach
@endif @endforeach
@endif
@endsection @section('page_scripts') @endsection