@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
{{ __('Who put money into this job, and what still needs returning.') }}
{{ __('Funded') }}
{{ number_format($totalFunded, 2) }}{{ $baseCurrency }}
{{ __('To return') }}
{{ number_format($totalOutstanding, 2) }}{{ $baseCurrency }}
| {{ __('Source') }} | {{ __('Funder') }} | {{ __('Date') }} | {{ __('Amount') }} | {{ __('Returned') }} | {{ __('Outstanding') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|---|
|
|
{{ $funding->funder_label }} | {{ optional($funding->funded_on)->format('Y-m-d') }} | {{ $funding->currency_code }} {{ number_format((float) $funding->amount, 2) }} | {{ number_format((float) $funding->returned_amount, 2) }} | {{ $funding->isRepayable() ? number_format($funding->outstanding, 2) : '—' }} |
|
@if ($canManage)
@if ($funding->isRepayable() && $funding->outstanding > 0)
@endif
@else
—
@endif
|
| {{ __('No funding recorded for this job yet.') }} | |||||||
{{ $funding->funder_label }}
{{ optional($funding->funded_on)->format('Y-m-d') }}
{{ $funding->currency_code }} {{ number_format((float) $funding->amount, 2) }} @if ($funding->isRepayable()) ({{ __('out:') }} {{ number_format($funding->outstanding, 2) }}) @endif
{{ $this->lineRepayable ? __('Repayable, must be returned to the funder.') : __('Client money, not returned (except a refund).') }}