@extends('layouts.admin')
@section('title', 'Customers')
@section('admin-content')
@include('admin.partials.player-tabs', ['activeTab' => 'players'])
Customer details ✕
{{ $player->name }} · Customer #{{ $player->id }}
{{ $player->claims_count }} receipt claims {{ $player->confirmed_rewards }} confirmed rewards {{ $player->spins_count }} spins Joined {{ $player->created_at->format('d M Y') }}
Last IP: {{ $player->last_ip ?: 'Not recorded' }} Registration IP: {{ $player->registration_ip ?: 'Not recorded' }}
@if((int) old('editing_player') === $player->id && $errors->any())@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@php($customerProfile = \Illuminate\Support\Facades\DB::table('customer_profiles')->where('user_id', $player->id)->first())
@php($customAnswers = \Illuminate\Support\Facades\DB::table('customer_form_answers')->where('user_id',$player->id)->orderByDesc('id')->get())
@if($customAnswers->isNotEmpty())Additional form answers @foreach($customAnswers as $answer){{ $answer->label }}: {{ $answer->value }} ({{ $answer->created_at }})
@endforeach @endif
@if($customerProfile)Mobile: {{ $customerProfile->mobile ?: 'Not provided' }} Cat: {{ $customerProfile->cat_name ?: 'Not provided' }} Email offers: {{ $customerProfile->marketing_email ? 'Opted in' : 'Not opted in' }} WhatsApp/SMS offers: {{ $customerProfile->marketing_mobile ? 'Opted in' : 'Not opted in' }} Cats: {{ $customerProfile->cat_count ?? 'Not provided' }} Source: {{ $customerProfile->source ?: 'Not provided' }} Interests: {{ implode(', ', json_decode($customerProfile->interests ?: '[]', true) ?: []) ?: 'Not provided' }}
@endif
Recent receipt claims Receipt Status Submitted @forelse(\Illuminate\Support\Facades\DB::table('receipt_submissions')->where('user_id',$player->id)->latest('id')->limit(10)->get() as $claim){{ $claim->receipt }}{{ $claim->branch }} {{ $claim->status==='pending'?'Pending verification':ucfirst($claim->status) }} {{ $claim->created_at }} @emptyNo receipt claims yet. @endforelse
Manage this customer’s claims ↗
Recent wheel results @forelse(\Illuminate\Support\Facades\DB::table('spins')->where('user_id',$player->id)->latest('id')->limit(10)->get() as $result){{ $result->prize_name }} · {{ $result->reward_status==='pending'?'Pending verification':ucfirst($result->reward_status) }} · {{ $result->created_at }}
@emptyNo spins yet.
@endforelse
@endforeach