@extends('admin.layouts.dashboard') @section('title', 'Dashboard') @section('content') @php $peak = max(1, $trend->max('total')); @endphp Add member Sync device @if ($lapsedAwaitingSweep > 0) {{ $lapsedAwaitingSweep }} {{ Str::plural('subscription', $lapsedAwaitingSweep) }} {{ $lapsedAwaitingSweep === 1 ? 'is' : 'are' }} still marked as running. They are closed out automatically once the fingerprint terminal is reachable. @endif
@if ($trend->sum('total') > 0)
@foreach ($trend as $point) @php $height = max(2, round(($point['total'] / $peak) * 100)); @endphp
@endforeach
{{ date('j M', strtotime($trend->first()['day'])) }} Peak {{ number_format($peak, 2) }} {{ date('j M', strtotime($trend->last()['day'])) }}
@else @endif
View active members
Daily transactions @if ($recentPayments->isEmpty()) @else
@foreach ($recentPayments as $payment) @endforeach
Member Package Date Paid Due
{{ ucwords($payment->fullname) }} {{ $payment->package_name ?? '—' }} {{ date('d M Y', strtotime($payment->payment_date)) }} {{ number_format($payment->paid, 2) }} @if ((float) $payment->due > 0) {{ number_format($payment->due, 2) }} @else 0.00 @endif
@endif
@endsection