@extends('layouts.support_member') @section('breadcrumb') @endsection @section('content')

{{ tr('sender_details') }}

@php $fields = [ ['first_name', 'ri-user-line', $sender->title . ' ' . $sender->first_name], ['middle_name', 'ri-user-line', $sender->middle_name], ['last_name', 'ri-user-line', $sender->last_name], ['email', 'ri-mail-line', $sender->email], ['mobile_country_code', 'ri-phone-line', $sender->mobile_country_code], ['mobile', 'ri-smartphone-line', $sender->mobile], [ 'dob', 'ri-calendar-line', common_date($sender->dob, auth('support_member')->user()->timezone, 'd M Y h:i A'), ], ['country', 'ri-map-pin-line', get_country($sender->country)], ['address_1', 'ri-road-map-line', $sender->address_1], ['address_2', 'ri-road-map-line', $sender->address_2], ['city', 'ri-building-line', $sender->city], ['state', 'ri-building-line', get_state_name($sender->state , $sender->country) ], ['postal_code', 'ri-mail-send-line', $sender->postal_code], [ 'type', 'ri-list-check', $sender->type == USER_TYPE_INDIVIDUAL ? tr('individual') : tr('business'), ], ['id_type', 'ri-id-card-line', $sender->id_type ? App\Models\Lookup::findValuebyKey($sender->id_type, LOOKUP_TYPE_ID_TYPE) : '', ], ['id_number', 'ri-hashtag', $sender->id_number], ['source_of_funds', 'ri-wallet-line', $sender->source_of_funds], ['status', 'ri-shield-check-line', $sender->status ? tr('active') : tr('deactivated')], [ 'created_at', 'ri-time-line', common_date($sender->created_at, auth('support_member')->user()->timezone, 'd M Y h:i A'), ], [ 'updated_at', 'ri-refresh-line', common_date($sender->updated_at, auth('support_member')->user()->timezone, 'd M Y h:i A'), ], ]; @endphp
@foreach ($fields as $field) @if(filled($field[2]))
{{ tr($field[0]) }}
{{ $field[2] ?: tr('na') }}
@endif @endforeach
@if ($sender->documents->isNotEmpty()) @php $documentIconMap = [ 'document_country' => 'ri-earth-line', 'document_name' => 'ri-file-text-line', 'document_type' => 'ri-file-2-line', 'document_file' => 'ri-attachment-line', ]; $allowedFields = ['document_country', 'document_name', 'document_type', 'document_file']; @endphp
{{ tr('documents') }}
@foreach ($sender->documents as $document)
@foreach ($allowedFields as $field) @php $value = $document->{$field}; @endphp @if ($value)
{{ tr($field) }}
@if ($field === 'document_file') {!! filePreview($value) !!} @else {{ $value }} @endif
@endif @endforeach
@endforeach
@endif
Business Persons
@if ($sender->business_persons && count($sender->business_persons) > 0)
@foreach ($sender->business_persons as $person)
{{ $person['first_name'] }} {{ $person['last_name'] }}
{{tr('email')}}:
{{ $person['email'] ?? tr('na') }}
{{tr('mobile')}}:
+{{ $person['mobile_country_code'] ?? '' }} {{ $person['mobile'] ?? tr('na') }}
{{tr('dob')}}:
{{ $person['dob'] ? common_date($person['dob'], auth('support_member')->user()->timezone ?? DEFAULT_TIMEZONE, 'd M Y') : tr('na') }}
{{tr('address')}}:
@php $address = array_filter([ $person['address_1'] ?? '', $person['address_2'] ?? '', ]); @endphp {{ implode(', ', $address) }}
{{ $person['city'] ?? '' }}, {{ $person['state'] ?? '' }} - {{ $person['postal_code'] ?? '' }}
{{tr('country')}}:
{{ $person['country'] ?? tr('na') }}
{{tr('id_type')}}:
{{ App\Models\Lookup::findValuebyKey($person['id_type'], LOOKUP_TYPE_ID_TYPE) ?? tr('na') }}
{{tr('id_number')}}:
{{ $person['id_number'] ?? tr('na') }}
@endforeach
@else

{{ tr('no_business_persons_available') }}

@endif
@endsection