<x-app-layout title="Create channel">
    <div class="mx-auto max-w-xl">
        <h1 class="text-xl font-semibold text-slate-900">Create channel</h1>
        <form method="POST" action="{{ route('meet.channels.store') }}" class="mt-6 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
            @csrf
            <div>
                <label class="block text-sm font-medium text-slate-700">Name</label>
                <input type="text" name="name" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
            </div>
            <div>
                <label class="block text-sm font-medium text-slate-700">Visibility</label>
                <select name="visibility" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
                    <option value="public">Public (org members)</option>
                    <option value="private">Private (invited only)</option>
                </select>
            </div>
            <div>
                <label class="block text-sm font-medium text-slate-700">Description</label>
                <textarea name="description" rows="3" class="mt-1 w-full rounded-lg border-slate-300 text-sm"></textarea>
            </div>
            <button type="submit" class="btn-primary w-full">Create channel</button>
        </form>
    </div>
</x-app-layout>
