@extends('layouts.admin') @section('title', $user->name) @section('page-title', 'User Profile') @section('content')
{{ $user->email }}
Business
{{ $user->business_name ?: 'Not set' }}
Phone
{{ $user->phone ?: 'Not set' }}
Storage
{{ number_format(($user->storage_used_bytes ?? 0) / 1048576, 2) }} MB
Country
{{ $user->country_code ?: 'Not set' }}
Currency
{{ $user->currency_code ?: 'Not set' }}
Last Seen
{{ $user->last_seen_at?->diffForHumans() ?? 'Never' }}
Override plan and optional expiry from the admin panel.
Sync history for this user.
Syncs Today
{{ number_format($syncStats['today']) }}
Total Syncs
{{ number_format($syncStats['total']) }}
Failed
{{ number_format($syncStats['failed']) }}
Last Sync
{{ $syncStats['last_sync'] ? \Carbon\Carbon::parse($syncStats['last_sync'])->diffForHumans() : 'Never' }}
Records synced from this user's device(s).
{{ ucfirst($module) }}
{{ number_format($count) }}
Images ({{ $userImages->count() }})
PDFs ({{ $userPdfs->count() }})
{{ basename($pdf->file_path) }}
{{ $pdf->table_ref }} · {{ number_format($pdf->size_bytes / 1024, 1) }} KB · {{ $pdf->created_at->format('d M Y') }}
{{ ucfirst($subscription->plan) }} · {{ ucfirst($subscription->source) }}
{{ ucfirst($subscription->period ?: 'custom') }} · {{ $subscription->starts_at?->format('d M Y') ?: 'Unknown start' }}
{{ strtoupper($device->platform ?: 'N/A') }} · {{ $device->model ?: 'Unknown device' }}
{{ $device->device_id }}
Manage staff for this POS. PINs are set on-device for security.
{{ $staff->name }}
{{ ucfirst($staff->role) }}