@extends('layouts/client') @section('title', __('client.services.subusers.manage')) @section('content')
@include('shared/alerts')

{{ __('client.services.subusers.manage') }}

{{ __('client.services.subusers.active_description') }}

@csrf

{{ auth('web')->user()->fullName }}

{{ auth('web')->user()->email }}

{{ __('client.subusers.owner_badge') }}
@forelse ($accesses as $access)
@if ($access->all_services) {{ __('client.subusers.all_services_locked') }} @endif @foreach ($servicePermissions as $permission)
@if (in_array($permission, \App\Models\Account\CustomerAccountAccess::SERVICE_PERMISSIONS_REQUIRING_INVOICES, true))

{{ __('client.subusers.invoice_permissions_auto_granted') }}

@endif
@endforeach
{{ __('client.subusers.manage_global') }}
@empty

{{ __('client.subusers.no_active_accesses') }}

@endforelse
@if ($accesses->isNotEmpty()) @endif
@csrf

{{ __('client.subusers.invite.title') }}

{{ __('client.subusers.invite.service_description') }}

@include('shared/input', ['name' => 'email', 'label' => __('global.email'), 'required' => true, 'type' => 'email'])
@foreach ($servicePermissions as $permission)
@if (in_array($permission, \App\Models\Account\CustomerAccountAccess::SERVICE_PERMISSIONS_REQUIRING_INVOICES, true))

{{ __('client.subusers.invoice_permissions_auto_granted') }}

@endif
@endforeach

{{ __('client.subusers.pending_invitations') }}

{{ __('client.services.subusers.pending_description') }}

@forelse ($invitations as $invitation)

{{ $invitation->email }}

{{ __('client.subusers.expires_at') }} {{ optional($invitation->expires_at)->format('d/m/Y H:i') }}

@csrf
@csrf @method('DELETE')
@empty

{{ __('global.no_results') }}

@endforelse
{{ __('client.services.managebtn') }} @if ($service->canUpgrade()) {{ __('client.services.upgradeservice') }} @endif @if ($service->configoptions->isNotEmpty()) {{ __('client.services.manageoptions') }} @endif @if (app('extension')->extensionIsEnabled('customers_reviews')) @include('customers_reviews::service_button', ['service' => $service]) @endif @if (auth('admin')->check()) {{ __('client.services.manageserviceonadmin') }} @endif

{{ $service->name }}

@if (!empty($service->description))

{!! nl2br($service->description) !!}

@endif
@if ($service->server_id != null)

{{ __('global.server') }}

{{ $service->server->name }}

@endif @if ($service->expires_at != null)

{{ __('client.services.expire_date') }}

@endif

{{ __('store.price') }}

{{ formatted_price($service->getBillingPrice()->displayPrice(), $service->currency) }} /{{ $service->recurring()['unit'] }}

@endsection