@extends('layouts.app') @section('title', 'Work Order #' . $workOrder->work_order_number) @section('content')
| # | Title | Amount | Target Date | Completed | Status | Approved By | Action |
|---|---|---|---|---|---|---|---|
| {{ $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') ?? '—' }} | {{ $ms->completion_date?->format('d M Y') ?? '—' }} | @php $msColors = ['pending' => 'secondary', 'in_progress' => 'info', 'completed' => 'warning', 'approved' => 'success']; @endphp {{ str_replace('_', ' ', ucfirst($ms->status)) }} | {{ $ms->approver->name ?? '—' }} | @php $transitions = \App\Models\WorkOrderMilestone::STATUS_TRANSITIONS[$ms->status] ?? []; @endphp @foreach($transitions as $nextStatus) @endforeach |
| Date | Type | Method | Reference | Narration | Amount | By |
|---|---|---|---|---|---|---|
| {{ $p->payment_date->format('d M Y') }} | @if($p->is_reversal) Reversal @else {{ ucfirst($p->payment_type) }} @endif | {{ $p->paymentMethod->method_name ?? '—' }} | {{ $p->reference_number ?? '—' }} | {{ $p->narration ?? '—' }} | {{ $p->is_reversal ? '-' : '' }}৳{{ number_format((float) $p->amount, 2) }} | {{ $p->createdBy->name ?? '—' }} |
| No payments recorded yet. | ||||||