@extends('layouts.admin') @section('page-title') {{ __('User Logs') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @php $logo = \App\Models\Utility::get_file('avatars/'); $logo_tasks = \App\Models\Utility::get_file('tasks/'); @endphp @section('action-button') @endsection @section('content')
{{-- --}} @auth('web') @endauth @php $current_month = Carbon\Carbon::now()->format('m'); $current_year = Carbon\Carbon::now()->format('y'); @endphp @foreach ($user_logs as $key => $user_log) @php $month = date('m', strtotime($user_log->date)); $year = date('y', strtotime($user_log->date)); @endphp @if ($current_month == $month && $current_year == $year) {{-- --}} @auth('web') @endauth @endif @endforeach
{{ __('User Name') }}{{__('Email')}}{{ __('Role') }} {{ __('Last Login') }} {{ __('IP') }} {{ __('Country') }} {{ __('Device type') }} {{ __('OS Name') }}{{ __('Action') }}
{{ $user_log->name }}{{ $user_log->email }} {{ $user_log->role }} {{ $user_log->date }} {{ $user_log->ip }} {{ $user_log->country }} {{ $user_log->device_type }} {{ $user_log->os_name }} {!! Form::open([ 'method' => 'DELETE', 'route' => ['users_logs.destroy', [$currentWorkspace->slug, $user_log->id]], 'id' => 'delete-form-' . $user_log->id, ]) !!} {!! Form::close() !!}
@endsection @push('scripts') @endpush