@extends('backend.layout.master-tailwind') @section('title', __('Trash')) @section('content') @php $hues = [120, 260, 280, 220, 30, 180, 300, 60, 200, 340]; @endphp
{{-- Page head --}}

{{ __('Trash') }}

{{ number_format($total) }} {{ __('deleted users') }}

{{-- Notice --}}
{{ __('Permanently deleting a user is irreversible and removes all their associated data from the system. Use Restore to recover a soft-deleted account instead.') }}
{{-- Toolbar --}}
{{ __('Role') }}
{{-- Table --}}
@forelse($users as $user) @php $hue = $hues[$user->id % count($hues)]; $fn = $user->first_name ?? ''; $ln = $user->last_name ?? ''; $initials = strtoupper(substr($fn, 0, 1) . substr($ln, 0, 1)) ?: 'U'; $name = trim($fn . ' ' . $ln) ?: ($user->username ?? '—'); $roleKey = $user->user_type == 2 ? 'freelancer' : 'client'; $roleLabel = $user->user_type == 2 ? __('Freelancer') : __('Client'); @endphp @empty @endforelse
{{ __('User') }} {{ __('Role') }} {{ __('Email') }} {{ __('Phone') }} {{ __('Country') }} {{ __('Deleted') }}
{{ __('Trash is empty.') }}
{{-- Pagination --}} @include('backend.layout.partials.paginator', ['paginator' => $users, 'label' => __('deleted users')])
@endsection @section('script') @endsection