@extends('portal.layouts.app') @section('title', $customer->full_name) @section('subtitle', 'Customer '.($customer->bank_customer_id ?? $customer->uuid)) @section('content')
@if ($customer->subscriptions->isEmpty())

This customer has not applied for any plan yet.

@else @foreach ($customer->subscriptions as $subscription) @endforeach
Reference Product Contribution Status
{{ $subscription->subscription_no }} @if ($subscription->policy_no) {{ $subscription->policy_no }} @endif {{ $subscription->product->short_name ?? $subscription->product->name }} / {{ $subscription->plan?->code }} {{ number_format((float) $subscription->contribution_amount) }} {{ $subscription->status->label() }}
@endif
@foreach ($customer->sessions as $session) @endforeach
When Decrypted OTP IP
{{ $session->created_at->format('d M Y H:i') }} {{ $session->decrypted ? 'Yes' : ($session->failure_reason ?? 'No') }} {{ $session->otp_verified ? 'Verified' : '-' }} {{ $session->ip_address }}
@foreach ([ 'CNIC' => $customer->maskedCnic(), 'Mobile' => $customer->maskedMobile(), 'Email' => $customer->email, 'Date of birth' => $customer->date_of_birth?->format('d M Y'), 'Age' => $customer->age(), 'Gender' => $customer->gender ? ucfirst($customer->gender) : null, 'City' => $customer->city, 'Account' => $customer->maskedAccount(), 'Account title' => $customer->account_title, 'Branch' => $customer->branch_name, 'Branch code' => $customer->branch_code, 'Segment' => $customer->segment, 'Visits' => $customer->visit_count, 'First seen' => $customer->first_seen_at?->format('d M Y H:i'), 'Last seen' => $customer->last_seen_at?->format('d M Y H:i'), ] as $label => $value)
{{ $label }}
{{ $value !== null && $value !== '' ? $value : '-' }}
@endforeach
@csrf
@endsection