@section('stylesheets')
@parent
@if (!\Helper::$datepicker_included)
@endif
@endsection
@section('javascripts')
@parent
@if (!\Helper::$datepicker_included)
{!! Minify::javascript(['/js/flatpickr/flatpickr.min.js', '/js/flatpickr/l10n/'.strtolower(Config::get('app.locale')).'.js']) !!}
{{-- Default config should be defined here because if "javascript" section is used when new datepicker is loaded it redefined the default config. --}}
@if (\Helper::isTimeFormat24())
@endif
@endif
@endsection
@php
\Helper::$datepicker_included = true;
@endphp