vendor and env first commit
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('page-title', __('Activity Log'))
|
||||
@section('page-heading', isset($user) ? $user->present()->nameOrEmail : __('Activity Log'))
|
||||
|
||||
@section('breadcrumbs')
|
||||
@if (isset($user) && isset($adminView))
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ route('activity.index') }}">@lang('Activity Log')</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">
|
||||
{{ $user->present()->nameOrEmail }}
|
||||
</li>
|
||||
@else
|
||||
<li class="breadcrumb-item active">
|
||||
@lang('Activity Log')
|
||||
</li>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form action="" method="GET" id="users-form" class="border-bottom-light mb-3">
|
||||
<div class="row justify-content-between mt-3 mb-4">
|
||||
<div class="col-lg-5 col-md-6">
|
||||
<div class="input-group custom-search-form">
|
||||
<input type="text"
|
||||
class="form-control input-solid"
|
||||
name="search"
|
||||
value="{{ Request::get('search') }}"
|
||||
placeholder="@lang('Search for Action')">
|
||||
|
||||
<span class="input-group-append">
|
||||
@if (Request::has('search') && Request::get('search') != '')
|
||||
<a href="{{ isset($adminView) ? route('activity.index') : route('profile.activity') }}"
|
||||
class="btn btn-light d-flex align-items-center"
|
||||
role="button">
|
||||
<i class="fas fa-times text-muted"></i>
|
||||
</a>
|
||||
@endif
|
||||
<button class="btn btn-light" type="submit" id="search-activities-btn">
|
||||
<i class="fas fa-search text-muted"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-borderless table-striped">
|
||||
<thead>
|
||||
@if (isset($adminView))
|
||||
<th class="min-width-150">@lang('User')</th>
|
||||
@endif
|
||||
<th>@lang('IP Address')</th>
|
||||
<th class="min-width-200">@lang('Message')</th>
|
||||
<th class="min-width-200">@lang('Log Time')</th>
|
||||
<th class="text-center">@lang('More Info')</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($activities as $activity)
|
||||
<tr>
|
||||
@if (isset($adminView))
|
||||
<td>
|
||||
@if (isset($user))
|
||||
{{ $activity->user->present()->nameOrEmail }}
|
||||
@else
|
||||
<a href="{{ route('activity.user', $activity->user_id) }}"
|
||||
data-toggle="tooltip" title="@lang('View Activity Log')">
|
||||
{{ $activity->user->present()->nameOrEmail }}
|
||||
</a>
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td>{{ $activity->ip_address }}</td>
|
||||
<td>{{ $activity->description }}</td>
|
||||
<td>{{ $activity->created_at->format(config('app.date_time_format')) }}</td>
|
||||
<td class="text-center">
|
||||
<a tabindex="0" role="button" class="btn btn-icon"
|
||||
data-trigger="focus"
|
||||
data-placement="left"
|
||||
data-toggle="popover"
|
||||
title="@lang('User Agent')"
|
||||
data-content="{{ $activity->user_agent }}">
|
||||
<i class="fas fa-info-circle"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! $activities->render() !!}
|
||||
@stop
|
||||
@@ -0,0 +1,42 @@
|
||||
<div class="card">
|
||||
<h6 class="card-header d-flex align-items-center justify-content-between">
|
||||
@lang('Latest Activity')
|
||||
|
||||
@if (count($activities))
|
||||
<small>
|
||||
<a href="{{ route('activity.user', $user->id) }}"
|
||||
class="edit"
|
||||
data-toggle="tooltip"
|
||||
data-placement="top"
|
||||
title="@lang('Complete Activity Log')">
|
||||
@lang('View All')
|
||||
</a>
|
||||
</small>
|
||||
@endif
|
||||
</h6>
|
||||
|
||||
<div class="card-body">
|
||||
@if (count($activities))
|
||||
<table class="table table-borderless table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>@lang('Action')</th>
|
||||
<th>@lang('Date')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($activities as $activity)
|
||||
<tr>
|
||||
<td>{{ $activity->description }}</td>
|
||||
<td>{{ $activity->created_at->format(config('app.date_time_format')) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
<p class="text-muted font-weight-light">
|
||||
<em>@lang('No activity from this user yet.')</em>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<script>
|
||||
var labels = @json(array_keys($activities));
|
||||
var activities = @json(array_values($activities));
|
||||
var trans = {
|
||||
chartLabel: "{{ __('Registration History') }}",
|
||||
action: "{{ __('action') }}",
|
||||
actions: "{{ __('actions') }}"
|
||||
};
|
||||
</script>
|
||||
<script src="{{ asset('assets/js/chart.min.js') }}"></script>
|
||||
<script src="{{ asset('assets/js/as/dashboard-default.js') }}"></script>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<div class="card">
|
||||
<h6 class="card-header">
|
||||
@lang('Activity') (@lang('Last Two Weeks'))
|
||||
</h6>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="pt-4 px-3">
|
||||
<canvas id="myChart" height="400"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user