@extends('layouts.admin_app') @section('title', 'Login Attempts') @section('content')

Login Attempts

@forelse($allAttempts as $attempt) @empty @endforelse
Date/Time IP Address Login Type Email/Username Status Browser Platform
{{ $attempt->created_at->format('Y-m-d H:i:s') }} {{ $attempt->ip_address }} @if($attempt->login_type == 0 || $attempt->login_type == 3) Location @elseif($attempt->login_type == 1) User @elseif($attempt->login_type == 2) Head Office @else Unknown @endif {{ $attempt->attempted_email ?? 'N/A' }} @if($attempt->is_active == 1) Success @else Failed @endif {{ $attempt->browser ?? 'N/A' }} {{ $attempt->platform ?? 'N/A' }}
No login attempts found
{{ $allAttempts->links() }}
@forelse($locationData as $data) @empty @endforelse
Location Name Location Code Username IP Address Changes
{{ $data['location']->trading_name }} {{ $data['location']->location_code }} {{ $data['location']->username }} @php $uniqueIps = []; @endphp @foreach($data['attempts'] as $attempt) @php $ipKey = $attempt->ip_address; if (!isset($uniqueIps[$ipKey])) { $uniqueIps[$ipKey] = true; } else { continue; } @endphp @endforeach
IP Address Date/Time Status Browser
{{ $attempt->ip_address }} {{ $attempt->created_at->format('Y-m-d H:i:s') }} @if($attempt->is_active == 1) Success @else Failed @endif {{ $attempt->browser ?? 'N/A' }}
No location login attempts found
@endsection @section('scripts') @endsection