@extends('layouts.dashboard') @section('title', __('messages.dashboard')) @section('header', __('messages.dashboard')) @section('sidebar') @include('owner.partials.sidebar') @endsection @section('content')
Total

Property Viewing Requests

{{ $totalBookings ?? 0 }}

{{ $pendingBookings ?? 0 }} awaiting approval

Active

Active Rental Agreements

{{ $activeContracts ?? 0 }}

out of {{ $totalContracts ?? 0 }} total contracts

Paid

Total Revenue Collected

{{ number_format($totalPaid ?? 0, 0) }}

TZS in completed payments

Outstanding

Outstanding Payments Due

{{ number_format($outstandingBalance ?? 0, 0) }}

TZS awaiting collection

Pending

Unpaid Invoices

{{ $pendingInvoices ?? 0 }}

{{ $overdueInvoices ?? 0 }} past due date

Overdue

Overdue Payment Reminders

{{ $overduePaymentsCount ?? 0 }}

payments requiring follow-up

Issued

Payment Receipts Issued

{{ $totalReceipts ?? 0 }}

official receipts generated

@if(isset($monthlyRevenue) && count($monthlyRevenue) > 0)

Revenue Performance (Last 6 Months)

@foreach($monthlyRevenue as $month)
{{ $month['month'] }} {{ number_format($month['revenue'], 0) }} TZS
@php $maxRevenue = collect($monthlyRevenue)->max('revenue'); $percentage = $maxRevenue > 0 ? ($month['revenue'] / $maxRevenue) * 100 : 0; @endphp
@endforeach
@endif

Recent Property Viewing Requests

@forelse($recentBookings ?? [] as $booking)

{{ $booking->name }}

{{ $booking->property->title ?? 'N/A' }}

{{ $booking->booking_type ?? 'rent' }} • {{ \Carbon\Carbon::parse($booking->preferred_date)->format('M d, Y') }}

{{ ucfirst($booking->status) }}
@empty

{{ __('messages.no_bookings_found') ?? 'No bookings found' }}

@endforelse
@if(($recentBookings ?? collect())->count() > 0) @endif

Recent Rental Agreements

@forelse($recentContracts ?? [] as $contract)

{{ $contract->contract_number }}

{{ $contract->property->title ?? 'N/A' }}

{{ $contract->customer->name ?? 'N/A' }} • {{ number_format($contract->total_amount, 0) }} {{ $contract->currency }}

{{ ucfirst($contract->status) }}
@empty

{{ __('messages.no_contracts_found') ?? 'No contracts found' }}

@endforelse
@if(($recentContracts ?? collect())->count() > 0) @endif

Recent Payment Transactions

@forelse($recentPayments ?? [] as $payment)

{{ $payment->payment_number }}

{{ $payment->contract->contract_number ?? 'N/A' }}

{{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }}

{{ number_format($payment->amount, 0) }} {{ $payment->currency }} {{ ucfirst($payment->status) }}
@empty

{{ __('messages.no_payments_found') ?? 'No payments found' }}

@endforelse
@if(($recentPayments ?? collect())->count() > 0) @endif
@endsection