@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
| {{ __('app.application_number') }} |
{{ __('applications.columns.finance_product') }} |
{{ __('app.amount') }} |
{{ __('app.status') }} |
@forelse($customer->applications as $app)
| {{ $app->application_number }} |
{{ optional($app->product)->name ?? 'โ' }} |
|
@include('applications.partials.status_badge', ['status' => $app->status]) |
@empty
| {{ __('app.no_related') }} |
@endforelse
| {{ __('app.reference') }} |
{{ __('applications.columns.finance_product') }} |
{{ __('leads.estimated_amount') }} |
{{ __('app.status') }} |
@forelse($customer->leads as $lead)
|
@can('leads.view')
{{ $lead->reference }}
@else
{{ $lead->reference }}
@endcan
|
{{ optional($lead->financeProduct)->name ?? 'โ' }} |
|
{{ __('leads.statuses.' . $lead->status) }} |
@empty
| {{ __('app.no_related') }} |
@endforelse
@endsection