{{ __('messages.dashboard') }} {{ __('messages.properties') }} {{ __('messages.bookings') ?? 'Bookings' }} @php $pendingBookingsCount = \App\Models\Booking::where('company_id', auth()->user()->company_id) ->where('status', 'pending') ->count(); @endphp @if($pendingBookingsCount > 0) {{ $pendingBookingsCount }} @endif {{ __('messages.tenants') }} {{ __('messages.leases') }} Rental Agreements {{ __('messages.payments') }} @php $overduePaymentsCount = \App\Models\Payment::where('company_id', auth()->user()->company_id) ->where('status', 'overdue') ->count(); @endphp @if($overduePaymentsCount > 0) {{ $overduePaymentsCount }} @endif Billing Invoices @php $overdueInvoicesCount = \App\Models\Invoice::where('company_id', auth()->user()->company_id) ->where(function($q) { $q->where('status', 'overdue') ->orWhere(function($q2) { $q2->where('status', 'pending') ->where('due_date', '<', now()); }); }) ->count(); @endphp @if($overdueInvoicesCount > 0) {{ $overdueInvoicesCount }} @endif Payment Receipts {{ __('messages.users') }} {{ __('messages.settings') }}