@extends('layouts.app') @section('title', $customer->name) @section('content') @can('customers.edit') {{ __('app.edit') }} @endcan {{ __('app.back') }}
{{ $customer->applications->count() }}
{{ __('app.applications') }}
{{ $customer->leads->count() }}
{{ __('app.leads') }}
{{ __('app.monthly_income') }}
{{ $customer->employment_sector ? __('customers.sectors.' . $customer->employment_sector) : 'โ€”' }}
{{ __('customers.employment_sector') }}
{{ __('customers.id_types.' . $customer->id_type) }} {{ $customer->national_id }} {{ optional($customer->birth_date)->format('Y-m-d') }} {{ $customer->gender ? __('customers.genders.' . $customer->gender) : '' }} {{ $customer->nationality }} {{ $customer->phone }} {{ $customer->email }} {{ $customer->city }} {{ $customer->employer }} @if($customer->monthly_income)@endif
@forelse($customer->applications as $app) @empty @endforelse
{{ __('app.application_number') }} {{ __('applications.columns.finance_product') }} {{ __('app.amount') }} {{ __('app.status') }}
{{ $app->application_number }} {{ optional($app->product)->name ?? 'โ€”' }} @include('applications.partials.status_badge', ['status' => $app->status])
{{ __('app.no_related') }}
@forelse($customer->leads as $lead) @empty @endforelse
{{ __('app.reference') }} {{ __('applications.columns.finance_product') }} {{ __('leads.estimated_amount') }} {{ __('app.status') }}
@can('leads.view') {{ $lead->reference }} @else {{ $lead->reference }} @endcan {{ optional($lead->financeProduct)->name ?? 'โ€”' }} {{ __('leads.statuses.' . $lead->status) }}
{{ __('app.no_related') }}
@endsection