<x-app-layout>
    <x-slot name="header">
        <h2 class="text-xl font-semibold leading-tight">
            {{ __('Edit Calendar') }}
        </h2>
    </x-slot>

    <div class="py-6">
        <div class="max-w-2xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white shadow-sm sm:rounded-lg p-6">
                <form method="POST" action="{{ route('calendar.update', $calendar) }}">
                    @csrf
                    @method('PUT')

                    @include('calendars._form', ['calendar' => $calendar, 'instance' => $instance])
                </form>
            </div>
        </div>
    </div>
</x-app-layout>
