@php $validation_lang_file = 'messages_' . session()->get('user.language', config('app.locale') ) . '.js'; @endphp @if(file_exists(public_path() . '/js/jquery-validation-1.16.0/src/localization/' . $validation_lang_file)) @endif @php $business_date_format = session('business.date_format'); $datepicker_date_format = str_replace('d', 'dd', $business_date_format); $datepicker_date_format = str_replace('m', 'mm', $datepicker_date_format); $datepicker_date_format = str_replace('Y', 'yyyy', $datepicker_date_format); $moment_date_format = str_replace('d', 'DD', $business_date_format); $moment_date_format = str_replace('m', 'MM', $moment_date_format); $moment_date_format = str_replace('Y', 'YYYY', $moment_date_format); $business_time_format = session('business.time_format'); $moment_time_format = 'HH:mm'; if($business_time_format == 12){ $moment_time_format = 'hh:mm A'; } @endphp @if(file_exists(public_path('js/lang/' . session()->get('user.language', config('app.locale')) . '.js'))) @else @endif @yield('javascript')