Added date and tooltip components

This commit is contained in:
snipe
2025-09-23 18:43:02 +01:00
parent 33e7425dee
commit a3bad98096
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,12 @@
@props([
'item' => null,
'input_style' => null,
'end_date' => null,
])
<!-- Datepicker -->
<div {{ $attributes->merge(['class' => 'input-group date']) }} data-provide="datepicker" data-date-today-highlight="true" data-date-language="{{ auth()->user()->locale }}" data-date-locale="{{ auth()->user()->locale }}" data-date-format="yyyy-mm-dd" data-date-autoclose="true" data-date-clear-btn="true"{{ $end_date ? ' data-date-end-date=' . $end_date : '' }}>
<input type="text" {{ $attributes->merge(['class' => 'form-control']) }}>
<span class="input-group-addon"><x-icon type="calendar" /></span>
</div>
@@ -0,0 +1,4 @@
<a href="#" data-tooltip="true" title="{{ $slot }}" style="padding-left: 0px;">
<x-icon type="more-info" style="font-size: 20px;" />
<span class="sr-only">{{ $slot }}</span>
</a>