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

User Details

View user information and voucher claim history

Back to Users
{{-- User Information Card --}}
{{-- Main Info --}}

Personal Information

{{ $user->first_name }} {{ $user->last_name }}

{{ $user->email }}

{{ $user->phone ?? 'Not provided' }}

@if($user->gender) {{ ucfirst($user->gender) }} @else

Not specified

@endif
{{ ucfirst($user->role ?? 'user') }}

#{{ $user->id }}

{{ $user->created_at->format('M d, Y') }}

@if($user->last_logged_in_at) {{ \Carbon\Carbon::parse($user->last_logged_in_at)->format('M d, Y H:i') }} @else Never @endif

{{-- Voucher Stats --}}
{{-- Total Claims --}}

Total Vouchers Claimed

{{ $totalClaimed }}

{{-- Uber Claims --}}

Uber Vouchers

{{ $uberClaimed }}

{{-- Lyft Claims --}}

Lyft Vouchers

{{ $lyftClaimed }}

{{-- Voucher Claim History --}}

Voucher Claim History

@if($user->vouchers->count() > 0)
@foreach($user->vouchers as $voucher) @endforeach
Voucher Code Type Claimed At Time Ago
{{ $voucher->code }}
{{ ucfirst($voucher->type) }} {{ $voucher->claimed_at->format('M d, Y') }} at {{ $voucher->claimed_at->format('H:i') }} {{ $voucher->claimed_at->diffForHumans() }}
@else

No vouchers claimed yet

This user hasn't claimed any vouchers

@endif
@endsection