@php $statusMeta = [ 'outstanding' => ['label' => __('Outstanding'), 'color' => 'amber'], 'partially_returned' => ['label' => __('Partially returned'), 'color' => 'sky'], 'returned' => ['label' => __('Returned'), 'color' => 'emerald'], 'written_off' => ['label' => __('Written off'), 'color' => 'slate'], ]; $sourceColor = [ 'client_upfront' => 'sky', 'client_deposit' => 'sky', 'company' => 'violet', 'director' => 'indigo', 'loan' => 'rose', ]; @endphp
| {{ __('Job') }} | {{ __('Source') }} | {{ __('Funder') }} | {{ __('Date') }} | {{ __('Amount') }} | {{ __('Outstanding') }} | {{ __('Status') }} |
|---|---|---|---|---|---|---|
| @if ($funding->job) {{ $funding->job->job_number }} {{ \Illuminate\Support\Str::limit($funding->job->title, 30) }} @else — @endif | {{ $funding->funder_label }} | {{ optional($funding->funded_on)->format('Y-m-d') }} | {{ $funding->currency_code }} {{ number_format((float) $funding->amount, 2) }} | {{ $funding->isRepayable() ? number_format($funding->outstanding, 2) : '—' }} | ||
|
|
||||||
{{ $funding->funder_label }}
@if ($funding->job) {{ $funding->job->job_number }} · {{ \Illuminate\Support\Str::limit($funding->job->title, 30) }} @endif @if ($funding->isRepayable() && $funding->outstanding > 0){{ __('Outstanding:') }} {{ number_format($funding->outstanding, 2) }}
@endif