@extends('layouts.admin') @section('title', 'Accounts') @section('content')
@foreach ([ '' => __('Everyone').' ('.$counts['all'].')', 'sellers' => __('Sellers').' ('.$counts['sellers'].')', 'suspended' => __('Suspended').' ('.$counts['suspended'].')', ] as $value => $label) $currentStatus === $value, 'pill-idle' => $currentStatus !== $value])> {{ $label }} @endforeach
@if ($accounts->isEmpty()) @else
@foreach ($accounts as $account) @endforeach
{{ __('Account') }} {{ __('Selling as') }} {{ __('Joined') }} {{ __('Status') }} {{ __('Actions') }}
{{ $account->name }} {{ $account->email }} {{ $account->sellerProfile?->display_name ?? '—' }} {{ $account->created_at?->format('d M Y') }} @if ($account->isSuspended()) {{ __('Suspended') }} @elseif (! $account->is_active) {{ __('Inactive') }} @else {{ __('Active') }} @endif {{ __('Open') }}
{{ $accounts->links() }}
@endif @endsection