From 9dd5008ee22839573e2466667d4bd13f52ceae42 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Thu, 7 Nov 2024 05:58:42 +0330 Subject: [PATCH] improve ux datepicker for persian dates --- resources/views/admin/advs/adv-form.blade.php | 2 +- resources/views/admin/customers/customer-form.blade.php | 2 +- resources/views/admin/discounts/discount-form.blade.php | 2 +- .../segments/customer/AvisaCustomer/AvisaCustomer.blade.php | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/views/admin/advs/adv-form.blade.php b/resources/views/admin/advs/adv-form.blade.php index 2a6455b..b4e8447 100644 --- a/resources/views/admin/advs/adv-form.blade.php +++ b/resources/views/admin/advs/adv-form.blade.php @@ -105,7 +105,7 @@ {{-- WIP for lang change def tab--}} getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif @if(isset($item)) :xvalue="{{strtotime($item->expire)}}" @endif > diff --git a/resources/views/admin/customers/customer-form.blade.php b/resources/views/admin/customers/customer-form.blade.php index 7d4fe59..fcdee2a 100644 --- a/resources/views/admin/customers/customer-form.blade.php +++ b/resources/views/admin/customers/customer-form.blade.php @@ -104,7 +104,7 @@ getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif @if(isset($item)) :xvalue="{{strtotime($item->dob)}}" @endif :timepicker="false" > diff --git a/resources/views/admin/discounts/discount-form.blade.php b/resources/views/admin/discounts/discount-form.blade.php index 5961bcc..802c0a3 100644 --- a/resources/views/admin/discounts/discount-form.blade.php +++ b/resources/views/admin/discounts/discount-form.blade.php @@ -44,7 +44,7 @@ getLocale() != 'fa') def-tab="1" xshow="datetime" @else xshow="pdatetime" @endif @if(isset($item)) :xvalue="{{strtotime($item->expire)}}" @endif :timepicker="true" > diff --git a/resources/views/segments/customer/AvisaCustomer/AvisaCustomer.blade.php b/resources/views/segments/customer/AvisaCustomer/AvisaCustomer.blade.php index a7baa6f..05b79c2 100644 --- a/resources/views/segments/customer/AvisaCustomer/AvisaCustomer.blade.php +++ b/resources/views/segments/customer/AvisaCustomer/AvisaCustomer.blade.php @@ -287,7 +287,8 @@ getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif :xvalue="{{strtotime(auth('customer')->user()->dob)}}" :timepicker="false" >