@extends('adminlte::page') @section('title', 'HeroLegend') @section('content_header') @stop @section('content')
@include('layouts.message')

Cheat Log

{!! Form::open(['action' => ['CheatLogController@deleteAll'], 'method' => 'DELETE', 'data-confirm-message' => trans('labels.confirm_delete'), 'class' => 'inline', 'style' => 'padding-left: 5px']) !!} {{ Form::button(' Delete All', ['title' => 'Delete All','type' => 'submit','class' => 'btn btn-danger','onClick' => 'return window.confirm("Are you sure want to delete all logs?")']) }} {!! Form::close() !!}

@foreach ($logs as $log) @endforeach
M.ID M.Name M.Level M.Server M.Vip Feature Name Cheat Type Request Actions
{{ $log->member_id }} {{ $mapMemberInfo[intval($log->member_id)]->member_name }} @if ($mapMemberInfo[$log->member_id]->banned_status)
Banned @endif
{{ $mapMemberInfo[intval($log->member_id)]->member_level }} {{ $mapMemberInfo[intval($log->member_id)]->member_server }} {{ $mapMemberInfo[intval($log->member_id)]->member_vip_level ?? 0 }} {{ $log->feature_name }} @if ($log->cheat_type == $cheatingTypes['cheating']) {{ $log->cheat_type }} @elseif ($log->cheat_type == $cheatingTypes['suspect']) {{ $log->cheat_type }} @else {{ $log->cheat_type }} @endif @if ($mapMemberInfo[$log->member_id]->banned_status == 0) {!! Form::open(['action' => ['ServerController@updateUserCheatingDetail'], 'method' => 'POST', 'data-confirm-message' => trans('labels.confirm_delete'), 'class' => 'inline']) !!} {{ Form::button(' Ban', ['title' => 'Ban','type' => 'submit','class' => 'btn btn-warning btn-sm','onClick' => 'return window.confirm("Do you want to ban this member?")']) }} {!! Form::close() !!} @else {!! Form::open(['action' => ['ServerController@updateUserCheatingDetail'], 'method' => 'POST', 'data-confirm-message' => trans('labels.confirm_delete'), 'class' => 'inline']) !!} {{ Form::button(' Unban', ['title' => 'Ban','type' => 'submit','class' => 'btn btn-primary btn-sm','onClick' => 'return window.confirm("Do you want to unban this member?")']) }} {!! Form::close() !!} @endif {!! Form::open(['action' => ['CheatLogController@destroy', $log->id], 'method' => 'DELETE', 'data-confirm-message' => trans('labels.confirm_delete'), 'class' => 'inline']) !!} {{ Form::button(' Delete', ['title' => 'Delete','type' => 'submit','class' => 'btn btn-danger btn-sm','onClick' => 'return window.confirm("Are you sure want to delete?")']) }} {!! Form::close() !!} {!! Form::open(['action' => ['CheatLogController@destroyByMemberID', $log->member_id], 'method' => 'DELETE', 'data-confirm-message' => trans('labels.confirm_delete'), 'class' => 'inline']) !!} {{ Form::button(' Delete by Member ID', ['title' => 'Delete By Member ID','type' => 'submit','class' => 'btn btn-danger btn-sm','onClick' => 'return window.confirm("Are you sure want to delete all log of this member?")']) }} {!! Form::close() !!}
@if (isset($logs)) {{ $logs->appends($_GET)->links() }} @endif
@stop @section('js') @endsection