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

{{ __($translatePrefix . '.show.title', ['name' => $item->fullname]) }}

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

@if ($item->isBlocked()) @endif
@if (staff_has_permission('admin.manage_customers'))
@endif

{{ __($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" => "company_name", "label" => __('global.company_name'), 'value' => old('company_name', $item->company_name)])
@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' => 'email', 'label' => __('global.email'), 'value' => old('email', $item->email), 'type' => 'email'])
@include("admin/shared/input", ["name" => "address", "label" => __('global.address'), 'value' => old('address', $item->address)])
@include("admin/shared/input", ["name" => "address2", "label" => __('global.address2'), 'value' => old('address2', $item->address2)])
@include("admin/shared/input", ["name" => "zipcode", "label" => __('global.zip'), 'value' => old('zipcode', $item->zipcode)])
@include("admin/shared/input", ["name" => "phone", "label" => __('global.phone'), 'value' => old('phone', $item->phone)])
@include("admin/shared/select", ["name" => "locale", "label" => __('global.locale'), 'value' => old('locale', $item->locale), 'options' => $locales])
@include("admin/shared/select", ["name" => "country", "label" => __('global.country'), "options" => $countries, "value" => old('country', $item->country)])
@include("admin/shared/input", ["name" => "city", "label" => __('global.city'), 'value' => old('city', $item->city)])
@include("admin/shared/input", ["name" => "region", "label" => __('global.region'), 'value' => old('region', $item->region)])

{{ __($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/textarea", ["name" => "billing_details", "label" => __('global.billing_details'), 'value' => old('billing_details', $item->billing_details), 'help' => __('global.billing_details_help')])
@include('admin/shared/input', ['name' => 'last_ip', 'label' => __($translatePrefix. '.show.last_ip'), 'value' => old('last_ip', $item->last_ip), 'disabled' => true]) @include('admin/shared/textarea', ['name' => 'notes', 'label' => __($translatePrefix. '.show.notes'), 'value' => old('notes', $item->notes)])
{{ __('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 @if (staff_has_permission('admin.show_invoices'))

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

{{ currency_symbol() }}

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

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

{{ currency_symbol() }}

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

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

{{ currency_symbol() }}

{{ $item->services->sum('price') }}

@endif
@if (staff_has_permission('admin.show_services')) @include('admin/core/customers/cards/services', ['services' => $services]) @endif @if (staff_has_permission('admin.show_invoices')) @include('admin/core/customers/cards/invoices', ['invoices' => $invoices]) @endif @if (staff_has_permission('admin.show_emails')) @include('admin/core/customers/cards/emails', ['emails' => $emails]) @endif @if (staff_has_permission('admin.reply_tickets')) @include('admin/core/customers/cards/tickets', ['tickets' => $tickets]) @endif @if (staff_has_permission('admin.show_logs'))

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

@include('admin/core/actionslog/usertable', ['logs' => $logs])
@endif @if (staff_has_permission('admin.show_payment_methods')) @include('admin/core/customers/cards/payment-methods', ['paymentmethods' => $paymentmethods]) @endif
@include('admin/metadata/overlay', ['item' => $item]) @if (staff_has_permission('admin.manage_customers')) @endif
@csrf @method('DELETE')
@if ($item->twoFactorEnabled())
@csrf
@endif @endsection