@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
{{-- Capital & Equity / Funding segmented control. Funding is reached through this toggle rather than its own sidebar link. --}} @if (! empty($liability['rows']))

{{ __('Outstanding to return') }}

{{ $liability['base'] }} {{ number_format($liability['total'], 2) }}
    @foreach ($liability['rows'] as $row)
  • {{ $row['funder'] }} · {{ $row['source'] }} {{ $liability['base'] }} {{ number_format($row['total'], 2) }}
  • @endforeach
@endif
@forelse ($fundings as $funding)

{{ $funding->source_label }} {{ $statusMeta[$funding->status]['label'] ?? $funding->status }}

{{ $funding->currency_code }} {{ number_format((float) $funding->amount, 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
@empty
@endforelse
{{ $fundings->links() }}