@extends("layouts.app")
@section("title", __("vrc::lang.report_receivables"))
@section("content")
<section class="content-header"><h1>@lang("vrc::lang.report_receivables")</h1></section>
<section class="content">
    @component("components.widget", ["class" => "box-warning"])
        <p><strong>@lang("vrc::lang.total"): {{ number_format($total,2) }}</strong></p>
        <table class="table table-bordered">
            <thead><tr><th>@lang("vrc::lang.aging_bucket")</th><th>@lang("vrc::lang.amount")</th></tr></thead>
            <tbody>
            @foreach ($buckets as $label => $amount)
                <tr><td>{{ $label }} @lang("vrc::lang.days")</td><td>{{ number_format($amount,2) }}</td></tr>
            @endforeach
            </tbody>
        </table>
    @endcomponent
</section>
@endsection
