@extends('layouts.main') @push('styles') @endpush @section('content')

Failed Logins

@include('audit_trail.menu')
{{ Form::open(['route' => 'audit_trail.failed_logins_search']) }}
{{ Form::label('date_range', __('audit_trail.select_the_date')) }}
{{ Form::button(__('audit_trail.search'), ['type' => 'submit', 'class' => 'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::close() }}
@if(count($failed_logins) > 0)
{{ Form::open(['method'=>'post','route' => 'failed_login_print']) }} {{ Form::hidden('data', json_encode($failed_logins)) }} {{ Form::submit('Print', ['style' => 'float: right;', 'class'=>'btn btn-success btn-success']) }} {{ Form::close() }}
@endif
@php $counter = 1; @endphp @foreach($failed_logins as $failed_login) @php $date = Carbon\Carbon::parse($failed_login->created_at); $now = Carbon\Carbon::now(); $user = Streamline\Models\User::where('id', $failed_login->user_id)->select('first_name', 'last_name')->first(); @endphp @php $counter++; @endphp @endforeach
No. Name Email IP Address Time & Date
{{ $counter }} {{ $user->first_name }} {{ $user->last_name }} {{ $failed_login->email_address }} {{ $failed_login->ip_address }} {{ streamline_date_time($failed_login->created_at) }} ({{ $date->diffForHumans() }})
{{ $failed_logins->links() }}
@endsection @push('scripts') @endpush