{{ __('messages.dashboard') }} {{ __('messages.bookings') ?? 'Bookings' }} @php $pendingBookingsCount = \App\Models\Booking::where('owner_id', auth()->id()) ->whereIn('property_id', \App\Models\Property::where('owner_id', auth()->id())->pluck('id')) ->where('status', 'pending') ->count(); @endphp @if($pendingBookingsCount > 0) {{ $pendingBookingsCount }} @endif Rental Agreements {{ __('messages.payments') }} @php $overduePaymentsCount = \App\Models\Payment::where('owner_id', auth()->id()) ->where('status', 'overdue') ->count(); @endphp @if($overduePaymentsCount > 0) {{ $overduePaymentsCount }} @endif Billing Invoices @php $overdueInvoicesCount = \App\Models\Invoice::where('owner_id', auth()->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.settings') }}