@extends('layouts.app') @section('title', 'Settlement') @section('page', 'settlement') @section('settlementNav', 'suppliers') @section('content') @include('partials.account-settlement-nav') @if (session('success')) {{ session('success') }} @endif @if ($errors->any()) {{ $errors->first() }} @endif

Total Outstanding

{{ money($totalOutstanding) }}

Open credit purchases

Open POs

{{ $billCount }}

Waiting for settlement

@forelse ($bills as $row) {{ $row->po_number }} {{ $row->purchase_date?->format('Y-m-d') ?? '—' }} {{ $row->supplier?->name ?? '—' }} {{ $row->notes ?: '—' }} {{ money((float) $row->due_amount) }} @if ($canManage ?? false)
@endif @empty No open credit purchases to settle. @endforelse
@if ($canManage ?? false) @endif @endsection @push('styles') @endpush @push('scripts') @endpush