enhance components, add mailtemplate, add traits for translations, for stats

This commit is contained in:
Ludovic CANDELLIER
2023-02-13 22:52:39 +01:00
parent f2f4788ce1
commit 0ecc7c73c7
32 changed files with 891 additions and 277 deletions

View File

@@ -1,8 +1,19 @@
@include('load.form.datepicker')
@if (($readonly ?? false) || ($disabled ?? false))
@include('components.form.input')
@else
@include('components.form.label')
<div class="input-group date" data-target-input="nearest">
@include('components.form.input', [
'type' => 'text',
'class' => $class ?? ' datepicker',
'meta' => 'data-target="#' . ($id_name ?? str_slug($name, '-')) . '"',
'placeholder' => $placeholder ?? App\Repositories\Core\DateTime::getLocaleFormatDate(),
'label' => false,
])
<div class="input-group-append" data-target="#{{ $id_name ?? str_slug($name, '-') }}" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>
@endif
<div class="input-group date" data-target-input="nearest">
@include('components.form.input', ['class' => 'datepicker', 'meta' => 'data-target="#'.str_slug($name).'"', 'placeholder' => App\Repositories\Core\DateTime::getLocaleFormatDate() ])
<div class="input-group-append" data-target="#{{ str_slug($name) }}" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>
@include('load.form.datepicker')