@extends('layouts.support_member') @section('breadcrumb') @endsection @section('content')
{{ trim($user->first_name . ' ' . $user->last_name) }}
@if($user->unique_id) {{ tr('user_id') }}: {{ $user->unique_id }} @endif
{{ strtoupper($user->user_type == USER_TYPE_BUSINESS ? tr('business') : tr('individual')) }}
@if($user->email) {{ $user->email }} @endif @if($user->mobile && $user->mobile_country_code) +{{ $user->mobile_country_code }} {{ $user->mobile }} @endif {{ tr('email') }}: {{ $user->email_verified_at ? tr('verified') : tr('not_verified') }} {{ tr('status') }}: {{ $user->status ? tr('active') : tr('inactive') }} @if($user->id_verification) {{ tr('id_verification') }}: {{ id_verification_status_formatted($user->id_verification) }} @endif @if($user->onboarding_step) {{ tr('onboarding') }}: {{ onboarding_formatted($user->onboarding_step, $user->user_type) }} @endif

@php $fields = [ tr('first_name') => $user->first_name, tr('last_name') => $user->last_name, tr('gender') => $user->gender ? gender_formatted($user->gender) : null, tr('dob') => $user->dob ? common_date($user->dob, auth('support_member')->user()->timezone, 'd M Y') : null, tr('browser_id') => $user->browser_id, tr('timezone') => $user->timezone, tr('service_type') => $user->service_type ? service_type_formatted($user->service_type) : null, tr('email_verified_at') => $user->email_verified_at ? common_date($user->email_verified_at, auth('support_member')->user()->timezone, 'd M Y h:i A') : null, tr('created_at') => $user->created_at ? common_date($user->created_at, auth('support_member')->user()->timezone, 'd M Y h:i A') : null, tr('updated_at') => $user->updated_at ? common_date($user->updated_at, auth('support_member')->user()->timezone, 'd M Y h:i A') : null, ]; @endphp @foreach($fields as $label => $value) @if(filled($value))
{{ $label }}
{{ $value }}
@endif @endforeach
{{ tr('virtual_accounts') }}
@if ($virtualAccounts->isNotEmpty()) @foreach ($virtualAccounts as $key => $virtual_account) @endforeach @else @endif
{{ tr('created_at') }} {{ tr('country') }} {{ tr('currency') }} {{ tr('account_number') }} {{ tr('account_holder_name') }} {{ tr('account_bank_name') }} {{ tr('balance') }} {{ tr('status') }}
{{ common_date($virtual_account->created_at, auth('support_member')->user()->timezone ?: DEFAULT_TIMEZONE, 'd M Y h:i:s A') }} {{ get_country($virtual_account->country) ?: tr('na') }} {{ $virtual_account->currency ?: tr('na') }} {{ $virtual_account->account_number ?: tr('na') }} {{ $virtual_account->account_holder_name ?: tr('na') }} {{ $virtual_account->account_bank_name ?: tr('na') }} {{ formatted_amount($virtual_account->balance , $virtual_account->currency) ?: tr('na') }} {{ $virtual_account->status ? tr('active') : tr('deactivated') }}
{{ tr('no_record_found') }}
@include('components.support_member.wallets')
{{ tr('business_details') }} @if(filled($user->userInformation?->unique_id)) - {{ $user->userInformation->unique_id }} @endif
@php $info = $user->userInformation; $type_of_business = $info?->type_of_business ? App\Models\Lookup::findValuebyKey($info?->type_of_business , LOOKUP_TYPE_BUSINESS_TYPE ) : '' ; $fields = [ 'Legal Name' => $info?->legal_name, 'Business Name' => $info?->business_name, 'Tax ID' => $info?->tax_id, 'Website' => $info?->website, 'Type of Business' => $type_of_business , 'Purpose of Transactions' => $info?->purpose_of_transactions, 'Address Line 1' => $info?->address_1, 'Address Line 2' => $info?->address_2, 'City' => $info?->city, 'State' => get_state_name($info?->state, $info?->country) , 'Country' => get_country($info?->country), 'Postal Code' => $info?->postal_code, ]; @endphp @if(collect($fields)->filter(fn ($v) => filled($v))->isEmpty())
{{ tr('no_business_information_available') }}
@else
@foreach($fields as $label => $value) @if(filled($value))
{{ $label }}
{{ $value }}
@endif @endforeach
@endif
@if ($user->userDocuments && count($user->userDocuments) > 0) @php $documentIconMap = [ 'document_country' => 'ri-earth-line', 'document_name' => 'ri-file-text-line', 'document_type' => 'ri-file-2-line', 'document_file' => 'ri-attachment-line', 'document_back_file' => 'ri-attachment-line', ]; $allowedFields = ['document_country', 'document_name', 'document_type', 'document_file','document_back_file']; @endphp
{{ tr('documents') }}
@foreach ($user->userDocuments as $document)
@foreach ($allowedFields as $key) @php $value = $document->{$key} ?? null; @endphp @if (!empty($value))
{{ tr($key) }}
@if ($key === 'document_file') {!! filePreview($value) !!} @elseif ($key === 'document_back_file') {!! filePreview($value) !!} @elseif ($key === 'document_country') {{ get_country($value) }} @elseif ($key === 'document_type') {{ \App\Models\Lookup::findValuebyKey($value) }} @elseif ($key === 'document_name') {{ document_type_formatted($value) }} @else {{ $value }} @endif
@endif @endforeach
@endforeach
@else
{{ tr('documents') }}
{{ tr('no_documents_available') }}
@endif
{{ tr('user_services') }}
@foreach ($user->userServices as $service)
{{ tr('service_type') }}
{{ strtoupper($service->service_type) }}
{{ tr('external_reference_id') }}
{{ $service->external_reference_id ?? '-' }}
{{ tr('status') }}
{{ $service->external_status }}
{{ tr('active') }}
{{ $service->is_active ? tr('yes') : tr('no') }}
{{ tr('created_at') }}
{{ optional($service->created_at)->format('d M Y') }}

                                                {{ json_encode($service->external_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
                                                
@endforeach
@endsection