78 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<x-app-layout id="calendar">
 | 
						|
 | 
						|
    <x-slot name="header">
 | 
						|
        <h1>
 | 
						|
            {{ __('Calendar') }}
 | 
						|
        </h1>
 | 
						|
        <h2>
 | 
						|
            <strong>{{ $active['month'] }}</strong>
 | 
						|
            <span>{{ $active['year'] }}</span>
 | 
						|
        </h2>
 | 
						|
        <menu>
 | 
						|
            <li>
 | 
						|
                <form class="button-group button-group--primary" method="get" action="/">
 | 
						|
                    <x-button.group-button>Day</x-button.group-button>
 | 
						|
                    <x-button.group-button>Week</x-button.group-button>
 | 
						|
                    <x-button.group-button active="true">Month</x-button.group-button>
 | 
						|
                    <x-button.group-button>3-Up</x-button.group-button>
 | 
						|
                </form>
 | 
						|
            <li>
 | 
						|
                <a class="button button--primary" href="{{ route('calendar.create') }}">
 | 
						|
                    <x-icon-plus-circle /> Create
 | 
						|
                </a>
 | 
						|
            </li>
 | 
						|
            <li>
 | 
						|
                <a class="button button--icon" href="{{ route('calendar.create') }}">
 | 
						|
                    <x-icon-settings />
 | 
						|
                </a>
 | 
						|
            </li>
 | 
						|
        </menu>
 | 
						|
    </x-slot>
 | 
						|
 | 
						|
    <x-slot name="article">
 | 
						|
 | 
						|
        <aside>
 | 
						|
            <div class="flex flex-col gap-4">
 | 
						|
                <details open>
 | 
						|
                    <summary>{{ __('My Calendars') }}</summary>
 | 
						|
                    <form id="calendar-toggles"
 | 
						|
                          class="content"
 | 
						|
                          action="{{ route('calendar.index') }}"
 | 
						|
                          method="get">
 | 
						|
                        <ul>
 | 
						|
                            @foreach ($calendars as $cal)
 | 
						|
                            <li>
 | 
						|
                                <label class="flex items-center space-x-2">
 | 
						|
                                    <input type="checkbox"
 | 
						|
                                           class="calendar-toggle"
 | 
						|
                                           name="c[]"
 | 
						|
                                           value="{{ $cal['slug'] }}"
 | 
						|
                                           style="--checkbox-color: {{ $cal['color'] }}"
 | 
						|
                                           @checked($cal['visible'])>
 | 
						|
                                    <span>{{ $cal['name'] }}</span>
 | 
						|
                                </label>
 | 
						|
                            </li>
 | 
						|
                            @endforeach
 | 
						|
                        </ul>
 | 
						|
 | 
						|
                        {{-- fallback submit button for no-JS environments --}}
 | 
						|
                        <noscript>
 | 
						|
                            <button type="submit">{{ __('Apply') }}</button>
 | 
						|
                        </noscript>
 | 
						|
                    </form>
 | 
						|
                </details>
 | 
						|
            </div>
 | 
						|
            <x-calendar.mini>
 | 
						|
                @foreach ($grid['weeks'] as $week)
 | 
						|
                    @foreach ($week as $day)
 | 
						|
                <x-calendar.mini-day :day="$day" />
 | 
						|
                    @endforeach
 | 
						|
                @endforeach
 | 
						|
            </x-calendar.mini>
 | 
						|
        </aside>
 | 
						|
 | 
						|
        <x-calendar.full class="month" :grid="$grid" :calendars="$calendars" :events="$events" />
 | 
						|
 | 
						|
    </x-slot>
 | 
						|
</x-app-layout>
 |