2021-07-30 14:38:27 +03:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
2021-07-30 16:22:18 +03:00
|
|
|
|
<title>ИЛ вики</title>
|
2021-07-30 14:38:27 +03:00
|
|
|
|
|
2021-07-30 16:22:18 +03:00
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
2021-07-30 14:38:27 +03:00
|
|
|
|
|
|
|
|
|
</head>
|
2021-07-30 16:22:18 +03:00
|
|
|
|
<body class="container">
|
|
|
|
|
@if (!empty($error))
|
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
|
{{$error}}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
<section class="row">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<form class="form" method="POST">
|
|
|
|
|
@csrf
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="search">Введите название игры для поиска:</label>
|
|
|
|
|
<input id="search" class="form-control" type="text" name="term" placeholder="Название игры" value="{{ $term }}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<button type="submit" class="btn btn-primary">Искать</button>
|
|
|
|
|
</div>
|
|
|
|
|
@if (empty($options))
|
|
|
|
|
@elseif ($options->count() === 0)
|
|
|
|
|
Мы не нашли ничего с таким названием.
|
|
|
|
|
@elseif ($options->count() > 0)
|
|
|
|
|
<p class="mb-3">Мы нашли несколько подходящих игр, выберите одну:</p>
|
|
|
|
|
<ul>
|
|
|
|
|
@foreach($options as $option)
|
|
|
|
|
<li><a href="/?id={{ $option->id }}">{{ $option->title }}</a></li>
|
|
|
|
|
@endforeach
|
|
|
|
|
</ul>
|
|
|
|
|
@endif
|
|
|
|
|
@if (!empty($response))
|
|
|
|
|
<textarea class="form-control" rows=6 readonly>{{ $response }}</textarea>
|
|
|
|
|
@endif
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
2021-07-30 14:38:27 +03:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|