@extends('admin.layout') @section('content')

Profile

Name{{ $user->name }}
Email{{ $user->email }}
Phone{{ $user->phone ?? '—' }}
Joined{{ $user->created_at->format('d M Y') }}
ID Verified @if($user->didit_verified) Verified
@csrf @method('PATCH')
@else Not Verified
@csrf @method('PATCH')
@endif
Status @if($user->is_banned) Banned @elseif($user->is_suspended) Suspended @else Active @endif
Role @if($user->is_lender) Lender @else Renter @endif @if($user->is_brand) Brand @endif
Stripe Account{{ $user->stripe_account_id ?? '—' }}

Stats

Total Earnings£{{ number_format($totalEarnings, 2) }}
Total Rentals{{ $totalRentals }}
Total Listings{{ $totalListings }}

Badges

@forelse($user->badges as $badge)
{{ $badge->icon }} {{ $badge->name }}
@csrf @method('DELETE')
@empty

No badges assigned

@endforelse
@csrf

Admin Notes

@csrf @method('PATCH')
@if($user->listings->count() > 0)

Listings ({{ $user->listings->count() }})

@foreach($user->listings->take(5) as $listing)
{{ $listing->title }} {{ $listing->status }} View
@endforeach
@endif
@endsection