@extends('admin.layout')

@section('content')
<div class="p-4">
    <!-- Current alerts -->
    @include('admin.home.alert')

    <div class="relative pt-5 text-gray-900 dark:text-white xl:max-w-[95%] 2xl:max-w-[90%]">
        <div class="flex items-center justify-center">
            <div class="relative p-4 pt-0 bg-white dark:bg-neutral-800 rounded-lg border-t-2 border-b-2 border-pink-700">
                <div class="relative p-4 w-96">
                    <form method="POST" action="{{ route('admin.alert.create') }}">
                        @csrf

                        <div class="p-4">
                            <label class="mb-2 leading-tight  text-gray-800 dark:text-gray-200 w-full" for="message">Enter Alert Message Here:</label>
                            <x-text-input id="message" class="block mt-1 w-full" type="text" name="message" required autofocus/>
                            <x-input-error :messages="$errors->get('message')" class="mt-2" />
                        </div>

                        <div class="mt-5 p-4">
                            <label class="mb-2 leading-tight  text-gray-800 dark:text-gray-200 w-full" for="type">Type:</label>
                            <select name="type" id="type" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900">
                                <option value="0">Info</option>
                                <option value="1" selected>Warning</option>
                            </select>
                            <x-input-error :messages="$errors->get('type')" class="mt-2" />
                        </div>
                        
                        <div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4">
                            <button type="submit" class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" data-te-ripple-init data-te-ripple-color="light">
                                Create
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection