<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">New License</h2>
    </x-slot>

    <div class="py-12">
        <div class="max-w-2xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg p-6">
                <form method="POST" action="{{ route('licenses.store') }}" class="space-y-5">
                    @csrf
                    @include('licenses._form-fields', ['license' => null])

                    <div class="flex justify-end gap-3">
                        <a href="{{ route('licenses.index') }}" class="px-4 py-2 text-sm text-gray-600">Cancel</a>
                        <button type="submit" class="inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700">
                            Create License
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</x-app-layout>
