48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
@props([
|
|
'formData',
|
|
])
|
|
|
|
<x-modal wire:model.live="showDownloadTifsModal" {{ $attributes }} >
|
|
<x-form-modal submit="downloadTifs" wire:loading.class="opacity-50">
|
|
<x-slot name="title">
|
|
{{ __('Download Zip with satelite data') }}
|
|
</x-slot>
|
|
|
|
<x-slot name="description">
|
|
</x-slot>
|
|
|
|
|
|
<x-slot name="form">
|
|
<div class="col-span-6 sm:col-span-4">
|
|
<x-label for="start_date" value="{{ __('Start Date') }}"/>
|
|
<x-input id="start_date" type="date" max="{{\Carbon\Carbon::yesterday()->toDateString()}}" class="mt-1 block w-full" wire:model.live="formData.start_date" autofocus/>
|
|
<x-input-error for="formData.start_date" class="mt-2"/>
|
|
</div><div class="col-span-6 sm:col-span-4">
|
|
<x-label for="end_date" value="{{ __('End Date') }}"/>
|
|
<x-input id="end_date" type="date" max="{{\Carbon\Carbon::yesterday()->toDateString()}}" class="mt-1 block w-full" wire:model.live="formData.end_date" />
|
|
<x-input-error for="formData.end_date" class="mt-2"/>
|
|
</div>
|
|
<div>
|
|
<span class="whitespace-nowrap"></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.showDownloadTifsModal = false"
|
|
>
|
|
{{ __('Cancel') }}
|
|
</x-secondary-button>
|
|
<x-button wire:loading.disabled>
|
|
{{ __('Save') }}
|
|
</x-button>
|
|
|
|
</x-slot>
|
|
</x-form-modal>
|
|
</x-modal>
|