32 lines
1.4 KiB
PHP
32 lines
1.4 KiB
PHP
@extends('layouts.proxy')
|
|||
|
|
|
||
|
|
@section('title', 'Home')
|
||
|
|
|
||
|
|
@section('content')
|
||
|
|
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
|
||
|
|
<div class="p-6 text-gray-900">
|
||
|
|
<h1 class="text-2xl font-semibold mb-6">Web Proxy</h1>
|
||
|
|
|
||
|
|
<form action="{{ route('proxy.browse') }}" method="POST" class="space-y-4">
|
||
|
|
@csrf
|
||
|
|
<div>
|
||
|
|
<label for="url" class="block text-sm font-medium text-gray-700">Enter URL to browse</label>
|
||
|
|
<div class="mt-1 flex rounded-md shadow-sm">
|
||
|
|
<input type="url" name="url" id="url" required
|
||
|
|
class="block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm"
|
||
|
|
placeholder="https://example.com"
|
||
|
|
value="{{ old('url') }}">
|
||
|
|
<button type="submit"
|
||
|
|
class="ml-3 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||
|
|
Go
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
@error('url')
|
||
|
|
<p class="mt-2 text-sm text-red-600">{{ $message }}</p>
|
||
|
|
@enderror
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endsection
|