@foreach ($project_names as $key => $project_name) {{ $project_name }} @if ($key < count($project_names) - 1) , @endif @endforeach

A/R Aging Report

Date: {{ date('d/m/Y') }}
User ID:   {{ Auth::user()->name }}
@foreach ($allDueStatements as $statement) @if ($statement->inventory->floor) @if ($statement->inventory->floor->unitBlock) @if ( ($filter_type == 'filter' && $block > 0 && $block == $statement->inventory->floor->unitBlock->id) || $filter_type == 'all') @endif @endif @endif @endforeach()
Client Unit No. Unit Floor. Unit Block. 0 - 30 Days 31 - 60 Days 61 - 90 Days 90+ Days Total
{{ $statement->customer->name }} {{ $statement->inventory ? $statement->inventory->unit_number : '' }} {{ $statement->inventory->floor ? $statement->inventory->floor->name : '' }} @if ($statement->inventory) @if ($statement->inventory->floor) {{ $statement->inventory->floor->unitBlock ? $statement->inventory->floor->unitBlock->name : '' }} @endif @endif {{ number_format($first_tenure[$statement->id]) }} @if ($totalAmount > 0) ({{ round(($first_tenure[$statement->id] / $totalAmount) * 100) }} %) @endif {{ number_format($second_tenure[$statement->id]) }} @if ($totalAmount > 0) ({{ round(($second_tenure[$statement->id] / $totalAmount) * 100) }} %) @endif {{ number_format($third_tenure[$statement->id]) }} @if ($totalAmount > 0) ({{ round($third_tenure[$statement->id] / $totalAmount) * 100 }} %) @endif {{ number_format($fourth_tenure[$statement->id]) }} @if ($totalAmount > 0) ({{ round(($fourth_tenure[$statement->id] / $totalAmount) * 100) }} %) @endif {{ number_format($first_tenure[$statement->id] + $second_tenure[$statement->id] + $third_tenure[$statement->id] + $fourth_tenure[$statement->id]) }}
Summary {{ number_format($first) }} {{ number_format($second) }} {{ number_format($third) }} {{ number_format($fourth) }} {{ number_format($total) }}