@extends('layouts.app') @section('title', 'Admin Dashboard') @section('content')

Admin Dashboard

{{-- Quick Action Buttons --}}

Quick Actions

@can('manage properties') Manage Properties @endcan @can('view tickets') View Tickets @endcan @can('view wallet') Wallet Overview @endcan
{{-- Dashboard Cards --}}
@can('view tenants')

Tenants

{{ $totalUsers }}

@endcan @can('view properties')

Properties

{{ $totalProperties }}

@endcan @can('view wallet')

Wallet Balance

₦{{ number_format($walletTotal, 2) }}

@endcan @can('view tickets')

Pending Tickets

{{ $pendingTickets }}

@endcan
{{-- ✅ Add this section below cards --}}

User Role Overview

{{-- ❌ Failed Transactions Section --}}

❌ Failed Transactions

@if($failedTransactions->count())
@foreach($failedTransactions as $txn) @endforeach
User Amount Status Reference Date
{{ $txn->user->name ?? 'N/A' }} ₦{{ number_format($txn->amount, 2) }} {{ $txn->status }} {{ $txn->reference }} {{ $txn->created_at->format('d M Y H:i') }}
@else

No failed transactions yet.

@endif
{{-- 🏡 Admin Property Controls --}}

🏡 Manage Properties

@if($properties->isEmpty())

No properties found.

@else
@foreach($properties as $property) @endforeach
Title Agent Featured City Price Actions
{{ $property->title }} {{ $property->agent->name ?? 'N/A' }}
@csrf
{{ $property->city }} ₦{{ number_format($property->price) }}
@csrf @method('DELETE')
@endif
@endsection