@extends('layouts.app') @section('title', 'Settlement') @section('page', 'settlement') @section('settlementNav', 'customers') @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 bills

Open Bills

{{ $billCount }}

Waiting for settlement

@forelse ($bills as $row) @php $billLabel = $row->bill_no ? 'Bill No '.$row->bill_no : ($row->invoice_no ?: '—'); @endphp {{ $billLabel }} {{ $row->sale_date?->format('Y-m-d H:i') ?? '—' }} {{ $row->customer?->name ?? '—' }} {{ $row->notes ?: '—' }} {{ money((float) $row->due_amount) }} @if ($canManage ?? false)
@endif @empty No open credit bills to settle. @endforelse
@if ($canManage ?? false) @endif @endsection @push('styles') @endpush @push('scripts') @endpush