@php($editing = $loan->exists) Back to list
@csrf @if ($editing) @method('PUT') @endif
@foreach ($sections as $title => $fields)
@foreach ($fields as $col => $def) @include('crm.loan-data.partials.field', ['model' => $loan, 'col' => $col, 'def' => $def]) @endforeach
@endforeach
@if ($editing)
Created
{{ $loan->created_date?->format('d-m-Y H:i') ?? '—' }}
Loan city
{{ $loan->loan_chat_type ?: '—' }}
Zoho id
{{ $loan->zohoRecordId() ?? '—' }}
Zoho updated
{{ $loan->zoho_update ?: 'No' }}
Data alot month
{{ $loan->DATA_ALOT_MONTH ?: '—' }}
Remark (data related)
{{ $loan->sp_rem_data_related ?: '—' }}
@else

The loan city (loan chat type) is derived from the data type when you save.

@endif
Cancel
@if ($editing) @forelse ($activities as $a) @php($tone = match (strtolower((string) $a->status)) { 'completed' => 'badge-green', 'in progress' => 'badge-amber', 'not started' => 'badge-blue', default => 'badge-gray' })
@if (Route::has('activities.show')) {{ $a->subject ?: 'Task #'.$a->id }} @else {{ $a->subject ?: 'Task #'.$a->id }} @endif {{ $a->status ?: '—' }}
{{ $a->user_name ?: 'User #'.$a->user_id }} @if ($a->task_for){{ $a->task_for }}@endif @if ($a->due_date)Due {{ date('d-m-Y', strtotime($a->due_date)) }}@endif @if ($a->modified_by)Updated {{ date('d-m-Y H:i', strtotime($a->modified_by)) }}@endif
@if ($a->final_remark_ins_loan)
{{ $a->final_remark_ins_loan }}
@endif
@empty @endforelse
@endif