{{ $goal->name }}

@if($goal->target_date)

Target: {{ $goal->target_date->format('d M Y') }}

@endif
Edit

Rp {{ number_format($goal->current_amount ?? 0, 0, ',', '.') }}

dari Rp {{ number_format($goal->target_amount ?? 0, 0, ',', '.') }}

{{ number_format($goal->progress_percentage ?? 0, 1) }}%

Tercapai

Rp {{ number_format(($goal->target_amount ?? 0) - ($goal->current_amount ?? 0), 0, ',', '.') }}

Sisa

@if($goal->target_date)

{{ max(0, now()->diffInDays($goal->target_date)) }}

Hari Lagi

@php $daysLeft = max(1, now()->diffInDays($goal->target_date)); $amountLeft = ($goal->target_amount ?? 0) - ($goal->current_amount ?? 0); $dailyNeeded = $amountLeft / $daysLeft; @endphp

Rp {{ number_format(max(0, $dailyNeeded), 0, ',', '.') }}

Per Hari

@endif

Riwayat Kontribusi

@forelse($goal->contributions ?? [] as $contribution)

{{ $contribution->amount > 0 ? 'Ditambahkan' : 'Dikurangi' }} Rp {{ number_format(abs($contribution->amount), 0, ',', '.') }}

{{ $contribution->created_at->format('d M Y, H:i') }}

@if($contribution->notes) {{ $contribution->notes }} @endif
@empty

Belum ada kontribusi

@endforelse
@push('scripts') @endpush