@php $inr = fn ($v) => $v === null ? '—' : '₹'.number_format((float) $v, (float) $v == (int) $v ? 0 : 2); $current = $activities->first(); @endphp Back @unless ($current) @endunless
@csrf @method('DELETE')
@forelse ($activities as $a)
{{ \App\Models\AdiActivity::normaliseStatus($a->Status) ?: '—' }} {{ trim((string) $a->Subject) ?: 'Activity #'.$a->id }}
{{ $a->fullname ?: 'User #'.$a->User_id }} @if ($a->phone_no) · {{ $a->phone_no }}@endif
@foreach ([ 'Final remark' => $a->Final_Remark, 'Inquiry status' => $a->Inq_Status, 'Task for' => $a->Task_For, 'Owner' => $a->Task_Owner, 'Bank' => $a->Bank_Name, 'Due date' => $a->Due_Date ? \Carbon\Carbon::parse($a->Due_Date)->format('d-m-Y') : null, 'Last updated' => $a->Modified_Date ? \Carbon\Carbon::parse($a->Modified_Date)->format('d-m-Y') : null, 'Field manager' => trim(($a->Field_Manager ?? '').' '.($a->Field_Manager_Number ? '· '.$a->Field_Manager_Number : '')), ] as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach
@foreach (['Notepad' => $a->Notepad, 'Special remark' => $a->Special_Remark, 'Executive remark' => $a->Exe_Remark] as $label => $text) @if (trim((string) $text) !== '')
{{ $label }}: {{ $text }}
@endif @endforeach
@empty @endforelse
Mobile
@if ($collection->CUSTOMER_NO){{ $collection->CUSTOMER_NO }}@else — @endif
Home address
{{ $collection->CUSTOMER_ADDRESS ?: '—' }}
Office address
{{ $collection->OFFICE_ADDRESS ?: '—' }}
Area
{{ $collection->AREA ?: '—' }}
City
{{ $collection->LOCATION_CITY ?: '—' }}
@foreach ([ 'Product' => $collection->Product, 'Make' => $collection->MAKE, 'Reg no' => $collection->Reg_No, 'Executive' => $collection->EXE_NAME, 'EMI' => $inr($collection->LOAN_EMI), 'Inst. O/S' => $collection->TOT_INST_OS, 'Overdue charge' => $inr($collection->OVERDUE_CHARGE), 'Bounce charge' => $inr($collection->BOUNCE_OVERDUE_CHARGE), 'CFOC charge O/S' => $inr($collection->CFOC_CHARGE_OS), 'Maturity' => $collection->MATURITY_DATE?->format('d-m-Y'), 'Allocated on' => $collection->Allocation_Date?->format('d-m-Y'), ] as $label => $value)
{{ $label }}
{{ $value !== null && $value !== '' ? $value : '—' }}
@endforeach
@unless ($current)
@csrf @include('adi.collections._assign-fields')
@endunless