@extends('layouts.app') @section('title', 'Aging Reports') @push('css') @endpush @section('content')
| No. | Status | Account No. | Customer | Total Card (Active/Inactive) | @php $isCurrent = request('order') == 'current'; $nextCurrent = ($isCurrent && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
Current {!! $isCurrent ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['current'] ?? '' }}) |
@php $is30 = request('order') == '30'; $next30 = ($is30 && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
30 Days {!! $is30 ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['30'] ?? '' }}) |
@php $is60 = request('order') == '60'; $next60 = ($is60 && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
60 Days {!! $is60 ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['60'] ?? '' }}) |
@php $is90 = request('order') == '90'; $next90 = ($is90 && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
90 Days {!! $is90 ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['90'] ?? '' }}) |
@php $is180 = request('order') == '180'; $next180 = ($is180 && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
180 Days {!! $is180 ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['180'] ?? '' }}) |
@php $is0 = request('order') == '0'; $next0 = ($is0 && request('by') == 'desc') ? 'asc' : 'desc'; @endphp
180++ Days {!! $is0 ? (request('by') == 'desc' ? '▼' : '▲') : '' !!} ({{ $labels['0'] ?? '' }}) |
Total | View |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $cardHolders->firstItem() + $loop->index }} | {{ $cardHolder->status?->label() }} | @if ($cardHolder->user) {{ $cardHolder->account_no ?? '--'}} @else {{ $cardHolder->account_no ?? '--'}} @endif | {{ $cardHolder->name ?? $cardHolder->user?->name ?? '--'}} | {{ $cardHolder->cards_count }} ({{ $cardHolder->active_cards_count ?? '0'}} / $inactive_cards_count == 0, 'bg-warning' => $inactive_cards_count != 0])> {{ $inactive_cards_count }} ) | {{ number_format($cardHolder->outstanding_30, 2) }} | {{ number_format($cardHolder->outstanding_60, 2) }} | {{ number_format($cardHolder->outstanding_90, 2) }} | {{ number_format($cardHolder->outstanding_120, 2) }} | {{ number_format($cardHolder->outstanding_180, 2) }} | {{ number_format($cardHolder->outstanding_more_180, 2) }} | @php $rowTotal = $cardHolder->outstanding_30 + $cardHolder->outstanding_60 + $cardHolder->outstanding_90 + $cardHolder->outstanding_120 + $cardHolder->outstanding_180 + $cardHolder->outstanding_more_180; @endphp{{ number_format($rowTotal, 2) }} | @if ($cardHolder->user) @else -- @endif |
| - Tiada rekod dijumpai - | ||||||||||||
| Total In This Page | RM {{ number_format($cardHolders->sum(function($ch) { return $ch->outstanding_30 + $ch->outstanding_60 + $ch->outstanding_90 + $ch->outstanding_120 + $ch->outstanding_180 + $ch->outstanding_more_180; }), 2) }} | |||||||||||