{{ $workOrder->description }}
@endif @if($workOrder->milestone_enabled && $workOrder->milestones->count() > 0)| # | Title | Amount | Target Date | Status |
|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $ms->title }} | @if($ms->amount) ৳{{ number_format((float) $ms->amount, 2) }} @elseif($ms->percentage) {{ $ms->percentage }}% @else — @endif | {{ $ms->target_date?->format('d M Y') ?? '—' }} | {{ str_replace('_', ' ', ucfirst($ms->status)) }} |
| Date | Type | Reference | Narration | Amount |
|---|---|---|---|---|
| {{ $p->payment_date->format('d M Y') }} | {{ $p->is_reversal ? 'Reversal' : ucfirst($p->payment_type) }} | {{ $p->reference_number ?? '—' }} | {{ $p->narration ?? '—' }} | {{ $p->is_reversal ? '-' : '' }}৳{{ number_format((float) $p->amount, 2) }} |
| Total Paid | ৳{{ number_format((float) $workOrder->paid_amount, 2) }} | |||
| Balance Due | ৳{{ number_format($workOrder->due_amount, 2) }} | |||