@extends('layout.app') @section('title', 'Target Savings Details') @section('pagetitle', 'Target Savings Details') @section('content')
Name: {{ $customer['first_name'] }} {{ $customer['last_name'] }}
Account Number: {{ number_format($customer['account_balance'], 2) }}
Business Name: {{ $customer['business_name'] ?? 'Nil' }}
Occupation: {{ $customer['occupation'] }}
Gender: {{ $customer['gender'] }}
Account Officer: {{ $customer['account_officer'] }}
Phone: {{ $customer['phone'] }}
Email: {{ $customer['email'] }}
Address: {{ $customer['residential_address'] }}
State: {{ $customer['state'] }}
LGA: {{ $customer['state_lga'] }}
| Target Code | Start Date | Frequency | Target (₦) | Auto Save Amount (₦) | Interest (%) | Total Accrued Interest (₦) | Total Saved (₦) | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $target->code ?? '—' }} | {{ $target->auto_save_start_date ? \Carbon\Carbon::parse($target->start_date)->format('d-m-Y') : '—' }} | {{ ucfirst($target->frequency ?? '—') }} | ₦{{ number_format((float) ($target->target_amount ?? 0), 2) }} | ₦{{ number_format((float) ($target->auto_save_amount ?? 0), 2) }} | {{ $product->interest_rate ?? '—' }}% | ₦{{ number_format((float) ($target->total_accrued_interest ?? 0), 2) }} | ₦{{ number_format((float) ($target->total_amount_saved ?? 0), 2) }} | {{ ucfirst($target->status ?? '—') }} |
|
{{ $label }}:
{{ $value }}
|
@endforeach
{{-- Fill remaining columns if less than 3 --}}
@for ($i = count($row); $i < 3; $i++)
@endfor |
| Schedule No | Target Code | Amount (₦) | Due Date | Status | Disbursed By | Disbursed At | Paid At | Updated At |
|---|---|---|---|---|---|---|---|---|
| {{ $item->schedule_no ?? '—' }} | {{ $item->target_savings_code ?? '—' }} | {{ number_format((float) $item->amount, 2) }} | {{ $item->due_date ? \Carbon\Carbon::parse($item->due_date)->format('d M, Y') : '—' }} | {{ ucfirst($item->status ?? '—') }} | {{ $item->disbursed_by ?? '—' }} | {{ $item->disbursed_at ? \Carbon\Carbon::parse($item->disbursed_at)->format('d M, Y H:i') : '—' }} | {{ $item->paid_at ? \Carbon\Carbon::parse($item->paid_at)->format('d M, Y H:i') : '—' }} | {{ $item->updated_at ? \Carbon\Carbon::parse($item->updated_at)->format('d M, Y H:i') : '—' }} |
| No schedules found. | ||||||||