52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
@props([
|
|
'formData',
|
|
/** @var \App\Livewire\Projects\MosaicManager */
|
|
'manager'
|
|
])
|
|
|
|
<x-modal wire:model.live="showCreateModal" {{ $attributes }} >
|
|
<x-form-modal submit="saveMosaic" wire:loading.class="opacity-50">
|
|
<x-slot name="title">
|
|
{{ __('Mosaic') }}
|
|
</x-slot>
|
|
|
|
<x-slot name="description">
|
|
{{ __('Mosaic generator for generating reports') }}
|
|
</x-slot>
|
|
|
|
|
|
<x-slot name="form">
|
|
<div class="col-span-6 sm:col-span-4">
|
|
<x-label for="year" value="{{ __('Year') }}"/>
|
|
<x-input id="year" type="number" min="1900" max="{{\Carbon\Carbon::now()->year}}" class="mt-1 block w-full" wire:model.live="formData.year" autofocus/>
|
|
<x-input-error for="formData.year" class="mt-2"/>
|
|
</div><div class="col-span-6 sm:col-span-4">
|
|
<x-label for="week" value="{{ __('Week') }}"/>
|
|
<x-input id="week" type="number" min="1" max="53" class="mt-1 block w-full" wire:model.live="formData.week" autofocus/>
|
|
<x-input-error for="formData.week" class="mt-2"/>
|
|
<x-input-error for="formData" class="mt-2"/>
|
|
</div>
|
|
<div>
|
|
<span class="whitespace-nowrap">{!! $manager->dateRange !!}</span>
|
|
</div>
|
|
</x-slot>
|
|
|
|
<x-slot name="actions">
|
|
<x-action-message class="mr-3" on="saved">
|
|
{{ __('Saved.') }}
|
|
</x-action-message>
|
|
|
|
<x-secondary-button class="mr-3"
|
|
type="button"
|
|
x-on:click="$wire.showCreateModal = false"
|
|
>
|
|
{{ __('Cancel') }}
|
|
</x-secondary-button>
|
|
<x-button wire:loading.disabled>
|
|
{{ __('Save') }}
|
|
</x-button>
|
|
|
|
</x-slot>
|
|
</x-form-modal>
|
|
</x-modal>
|