@extends('layouts.adminlte.adminlte')
@section('title')
Blacklist
@endsection
@section('content_header')
@parent
@foreach (['danger', 'warning', 'success', 'info'] as $msg)
@if(Session::has('alert-' . $msg))
{{ Session::get('alert-' . $msg) }}
@endif
@endforeach
Blacklist
@endsection
@section('content')
{!! Form::open(['action' => ['App\Http\Controllers\BlacklistController@search'], 'method' => 'POST']) !!}
{{Form::text('blacklist_input', '', [ 'class' => 'col-md-4 textbox form-textbox center form-control', 'placeholder' => 'Enter the search terms'])}}
{{Form::submit('Search', ['class' => 'center btn btn-primary'])}}
{!! Form::close() !!}
@if($search ?? false)
@if($records->count() > 0)
❌ Records found:
@foreach($records as $record)
{{$record->key_type}} - {{$record->value}}
@if($record->created_at)
- {{$record->created_at}}
@endif
@if(auth()->user()->user_type == "admin" && ($record->added_by || $record->added_by_telegram))
- Added by {{$record->added_by_str}}
@endif
@if($record->reason)
- Reason: {{$record->reason}}
@endif
@endforeach
@else
✅ Nothing found in the blacklist!
@endif
@endif
@endsection
@section('css')
@parent
@endsection
@section('js')
@parent
@endsection