@extends('admin/layouts/admin') @section('title', __($translatePrefix . '.show.title', ['name' => $item->fullname])) @section('scripts') @endsection @section('content')
@include('admin/shared/alerts')

{{ $item->fullname }} @if ($item->legal_name ?: $item->company_name) - {{ $item->legal_name ?: $item->company_name }} @endif

{{ $item->email }} @if ($item->phone) | {{ $item->phone }} @endif

{{ __($translatePrefix . '.show.subheading', ['date' => $item->created_at->format('d/m/Y')]) }}

@if ($item->isBlocked()) {{ $item->getBlockedMessage() }} @endif
@if (staff_has_permission('admin.show_invoices'))

{{ formatted_price($item->invoices->where('status', 'paid')->sum('total')) }}

{{ __($translatePrefix . '.show.stats.paid') }}

{{ formatted_price($item->invoices->where('status', 'pending')->sum('total')) }}

{{ __($translatePrefix . '.show.stats.unpaid') }}

{{ formatted_price($item->balance) }}

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

@endif @if (staff_has_permission('admin.manage_customers'))
@endif
@csrf @method('PUT')

{{ __($translatePrefix . '.show.billing') }}

@include('admin/shared/input', [ 'name' => 'firstname', 'label' => __('global.firstname'), 'value' => old('firstname', $item->firstname), ])
@include('admin/shared/input', [ 'name' => 'lastname', 'label' => __('global.lastname'), 'value' => old('lastname', $item->lastname), ])
@include('admin/shared/input', [ 'name' => 'balance', 'label' => __('global.balance'), 'value' => old('balance', $item->balance), 'type' => 'number', 'step' => '0.01', 'min' => 0, ])
@include('admin/shared/input', [ 'name' => 'phone', 'label' => __('global.phone'), 'value' => old('phone', $item->phone), ])
@include('admin/shared/input', [ 'name' => 'email', 'label' => __('global.email'), 'value' => old('email', $item->email), 'type' => 'email', ])
@include('admin/shared/select', [ 'name' => 'locale', 'label' => __('global.locale'), 'value' => old('locale', $item->locale), 'options' => $locales, ])

{{ __($translatePrefix . '.show.details') }}

@include('admin/shared/input', [ 'name' => 'last_login', 'label' => __($translatePrefix . '.show.last_login'), 'value' => old('last_login', $item->last_login), 'disabled' => true, ])
@include('admin/shared/input', [ 'name' => 'last_ip', 'label' => __($translatePrefix . '.show.last_ip'), 'value' => old('last_ip', $item->last_ip), 'disabled' => true, ])
{{ __('client.profile.security.index') }}
@include('admin/shared/password', [ 'name' => 'password', 'label' => __('global.password'), 'value' => old('password'), 'help' => __('admin.customers.show.passwordhelp'), ])
@if ($item->email_verified_at == null)
@endif @includeWhen(app('extension')->extensionIsEnabled('supportid'), 'supportid_admin::card', ['customer' => $item] )
@if (staff_has_permission('admin.manage_customers'))
@endif
@if (staff_has_permission('admin.manage_customers')) @endif @if (staff_has_permission('admin.show_services')) @endif @if (staff_has_permission('admin.show_invoices')) @endif @if (staff_has_permission('admin.manage_tickets')) @endif @if (staff_has_permission('admin.show_emails')) @endif @if (staff_has_permission('admin.show_payment_methods')) @endif @if (staff_has_permission('admin.show_logs')) @endif
@include('admin/metadata/overlay', ['item' => $item]) @if (staff_has_permission('admin.manage_customers')) @endif
@csrf @method('DELETE')
@csrf
@if ($item->twoFactorEnabled())
@csrf
@endif @if ($item->hasSecurityQuestion())
@csrf
@endif @if ($item->twoFactorEnabled()) @endif @if ($item->hasSecurityQuestion()) @endif @if (staff_has_permission('admin.manage_invoices')) @endif
@endsection