From 178f851f4fdff91ba18d13671fe9d3e29ce3d61d Mon Sep 17 00:00:00 2001 From: A1Gard Date: Wed, 25 Sep 2024 10:56:31 +0330 Subject: [PATCH] improved ui/ux --- .../Controllers/Api/CategoryController.php | 2 +- app/Http/Controllers/ClientController.php | 2 +- app/Http/Controllers/ThemeController.php | 3 ++ resources/lang/fa.json | 53 +++++++++++++------ .../admin/guestlogs/guestlog-form.blade.php | 42 --------------- .../ParallaxHeaderPin/ParallaxHeaderPin.scss | 13 ++++- .../segments/menu/AplMenu/AplMenu.blade.php | 4 +- .../post/PostSidebar/PostSidebar.blade.php | 26 ++++++--- .../post/SimplePost/SimplePost.blade.php | 26 ++++++--- 9 files changed, 97 insertions(+), 74 deletions(-) delete mode 100644 resources/views/admin/guestlogs/guestlog-form.blade.php diff --git a/app/Http/Controllers/Api/CategoryController.php b/app/Http/Controllers/Api/CategoryController.php index a0e87a7..8338fba 100644 --- a/app/Http/Controllers/Api/CategoryController.php +++ b/app/Http/Controllers/Api/CategoryController.php @@ -68,6 +68,6 @@ class CategoryController extends Controller public function props( $id){ $category = Category::whereId($id)->firstOrFail(); - return PropCollection::collection($category->props); + return PropCollection::collection($category->props()->orderBy('sort')->get()); } } diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index 8a5086a..cb88619 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -525,7 +525,7 @@ class ClientController extends Controller $customer->password = bcrypt($passwd); $customer->save(); - return redirect()->back()->with(['message' => $msg]); + return redirect()->back()->with(['message' => $msg . __("Please check your email to find password, Don't forget check spam/junk too, If you find our email in spam folder, Please mark it `Not spam`")]); } public function singInDo(Request $request) diff --git a/app/Http/Controllers/ThemeController.php b/app/Http/Controllers/ThemeController.php index aa1f3c4..9782163 100644 --- a/app/Http/Controllers/ThemeController.php +++ b/app/Http/Controllers/ThemeController.php @@ -21,6 +21,9 @@ class ThemeController extends Controller } $response .= ';'; } + if (langIsRTL(app()->getLocale())) { + $response .= 'font-feature-settings: "ss01";'; + } } $response .= '}'; diff --git a/resources/lang/fa.json b/resources/lang/fa.json index 1815b32..72e51cc 100644 --- a/resources/lang/fa.json +++ b/resources/lang/fa.json @@ -44,6 +44,7 @@ "Add new product": "افزودن یک محصول", "Add new prop": "افزودن یک ویژگی", "Add new question": "افزودن یک سوال", + "Add new rate": "افزودن یک امتیاز", "Add new setting": "افزودن یک تنظیم", "Add new slider": "افزودن یک اسلایدر", "Add new state": "افزودن یک استان", @@ -90,6 +91,8 @@ "Auth code": "کد احراز هویت", "Auth code is invalid": "کد احراز هویت اشتباه اسات", "Auth code send successfully": "کد احراز هویت ارسال شد", + "Authentication Mail": "ایمیل احراز هویت", + "Avatar": "آواتار", "Back to profile": "بازگشت به نمایه", "Background image": "تصویر زمینه", "Base price": "مبلغ پایه", @@ -141,12 +144,13 @@ "Credit history": "تاریخچه اعتبار", "Credits": "اعتبارات", "Customer": "مشتری", - "Customer mobile": "", + "Customer mobile": "موبایل مشتری", "Customers": "مشتری‌ها", "Customers list": "فهرست مشتری‌ها", "DEMO VERSION": "نگارش آزمایشی", "Dashboard": "پیشخوان", "Date": "تاریخ", + "Date of born": "تاریخ تولد", "Datetime": "تاریخ و زمان", "Deattach": "عدم پیوست", "Default": "پیش‌فرض", @@ -158,6 +162,7 @@ "Description Text": "نوشته توضیحات", "Design": "طراحی", "Design :AREA": "طراحی :AREA", + "Detail": "جزئیات", "Devices": "دستگاه‌ها", "Discount code": "کد تخفیف", "Discount code is valid.": "کد تخفیف اعمال شد", @@ -184,13 +189,14 @@ "Edit evaluation": "ویرایش ارزیابی", "Edit gallery": "ویرایش گالری", "Edit group": "ویرایش سرفصل", - "Edit invoice": "", + "Edit invoice": "ویرایش صورت‌حساب", "Edit language": "ویرایش زبان", "Edit menu": "ویرایش فهرست", "Edit post": "ویرایش نوشته", "Edit product": "ویرایش محصول", "Edit prop": "ویرایش ویژگی", "Edit question": "ویرایش سوال", + "Edit rate": "ویرایش امتیاز", "Edit slider": "ویرایش اسلایدر", "Edit state": "ویرایش استان", "Edit ticket": "ویرایش تیکت", @@ -211,6 +217,7 @@ "False": "خیر", "Favorites": "علاقه‌مندی‌ها", "Feature image": "تصویر شاخص", + "Female": "مونث", "File": "پرونده", "File ext": "پسوند پرونده", "File name": "نام پرونده", @@ -236,15 +243,17 @@ "Groups": "سرفصل‌ها", "Groups list": "فهرست سرفصل‌ها", "Guest": "میهمان", + "GuestLogs list": "فهرست لاگ میهمان ها", + "Height": "قد", "Home": "خانه", "ID": "", "Icon": "نماد", "If not choose expire expire time will be unlimited": "اگر زمان انقصا را انتخاب نکنید، هرگز منقضی نخواهد شد", - "If you cancel this, You must increase credit yourself.": "", - "If you change transport method you must think about think about the price diffrance": "", + "If you cancel this, You must increase credit yourself.": "اگر شما این مورد را لغو کنید می‌بایستی خودتان اعتبار کاربر را افزایش دهید", + "If you change transport method you must think about think about the price diffrance": "اگر روش ارسال را عوض کنید، تفاوت مبلغ‌ها را می‌بایستی خودتان حل کنید", "If you did not receive the email": "اگر ایمیلی دریافت نکردید", "If you forget your password call us": "اگر گذرواژه خود را فراموش کردید با ما تماس بگیرید", - "If you removed order from invoice, system adding amount to customer's credit automatically": "", + "If you removed order from invoice, system adding amount to customer's credit automatically": "اگر یک سفارش را حذف کنید مبلغ سفارش به صورت خودکار به اعتبار مشتری افزوده خواهد شد", "If you want to change the password, choose both the same. Otherwise, leave the password field blank.": "اگر می‌خواهید گذرواژه را عوض کنید هر دو را یکسان پر کنید، در غیر این صورت آن را خالی رها کنید", "If you want to only attach to other staff members and do not want to appear in the website attachment list, uncheck `fillable`": "اگر می‌خواهید این پوست در فهرست پیوست‌های وبسایت نمایش داده نشود مورد مورد `قابل نمایش` را غیرفعال کنید", "Image": "تصویر", @@ -252,7 +261,7 @@ "Image uploaded successfully": "تصویر افزوده شد", "Images": "تصاویر", "Increase \/ decrease by Admin": "افزودن \/ کاهش توسط مدیر سایت", - "Increase by Admin removed:": "", + "Increase by Admin removed:": "افزودنت توسط مدیر حذف شد", "Index": "صفحه نخست", "Index image": "تصویر شاخص", "Information": "اطلاعات", @@ -261,10 +270,10 @@ "Invalid json file!": "فایل جی‌سان معتبر نیست", "Invalid morph": "چند ریخیتی نا معتبر", "Invoice": "صورت حساب", - "Invoice ID:": "", + "Invoice ID:": "ID صورت حساب", "Invoice payed.": "صورت‌حساب پرداخت شد", "Invoices": "صورت‌حساب‌ها", - "Invoices list": "", + "Invoices list": "فهرست صورت حساب ها", "Is default": "آی پیش‌فرض است", "Is effective price?": "آیا در قیمت تاثیر دارد؟", "Is fillable": "قابل نمایش", @@ -289,6 +298,7 @@ "Main group": "سرفصل اصلی", "Main language content": "زبان اصلی محتوا", "Main product category": "دسته اصلی محصول", + "Male": "مذکر", "Managing": "مدیریت", "Max click": "حداکثر کلیک", "Max click zero is unlimited": "حداکثر کلیک 0 به معنای بی‌نهایت است", @@ -308,16 +318,18 @@ "Next": "بعدی", "No parent": "بدون والد", "Not required": "غیر ضرروری", - "Order removed successfully": "", + "Order removed successfully": "سفارش با موفقیت حذف شد", "Orders": "سفارشاات", "Orders count": "تعداد سفارش", "Password": "گذرواژه", + "Password or new password is:": "گذرواژه یا گذرواژه جدید عبارت است از:", "Pay now": "پرداخت", "Payment & discount": "تخفیف و پرداخت", "Pending": "معلق", "Pending tickets": "تیکت‌های بی‌پاسخ", "Phone": "شماره تماس", "Pin": "سنجاق", + "Please check your email to find password, Don't forget check spam\/junk too, If you find our email in spam folder, Please mark it `Not spam`": "برای پیدا کردن گذرواژه خود به ایمیل خود مراجعه کنید، فراموش نکنید پوشه هرزنامه‌ها رو نیز بررسی کنید، در صورت که ایمیل ما هرزنامه شناخته شده بود، ممنون می‌شویم آنرا به عنوان عدم هرزنامه نشانه گذاری کنید", "Please confirm your password before continuing.": "لطفا پیش از ادامه گذرواژه خود را تایید کنید", "Please upload file": "لطفا یک پرونده بارگزاری کنید", "Please, Login or complete information to pay": "لطفا وارد شوید یا اطلاعات خود را تکمیل کنید تا اجازه پرداخت داشته باشید", @@ -332,7 +344,7 @@ "Preview": "پیش‌نمایش", "Previous": "قبلی", "Price": "مبلغ", - "Print": "", + "Print": "چاپ", "Product": "محصول", "Product added to compare": "محصول به فهرست مقایسه افزوده شد", "Product added to favorites": "محصول به علاقه‌مندی شما افزوده شد", @@ -357,10 +369,12 @@ "Questions list": "فهرست سوالات", "RTL": "راست به چپ", "Rate": "امتیاز", + "Rates list": "فهرست امتیازها", "Read more": "اطلاعات بیشتر", "Recent posts": "واپسین نوشته‌ها", "Recommends": "توصیه‌ها", "Register": "ثبت‌نام", + "Register or Reset password": "ثبت‌نام یا بازیابی گذرواژه", "Reject": "رد کردن", "Rejected": "رد شده", "Related products": "محصولات مشابه", @@ -399,12 +413,15 @@ "Setting added to website": "تنظیم به سایت اضافه شد", "Setting of website updated": "تنظیمات به روز شدند", "Settings": "تنظیمات", + "Sex": "جنسیت", "Shopping card": "سبد خرید", "Show": "نمایش", "Show list": "نمایش فهرست", - "Sign in as customer": "", + "Sign in as customer": "ورود به عنوان مشتری", + "Sign up as customer": "ثبت نام به عنوان مشتری", "Sign-in": "ورود", "Sign-out": "خروج", + "Sign-up": "ثبت‌نام", "Signed in successfully": "با موفقیت وارد شدید", "Signed out successfully": "با موفقیت خارج شدید", "Size": "اندازه", @@ -423,7 +440,7 @@ "Subject": "عنوان", "Submit new ticket": "ارسال یک تیکت جدید", "Subtitle": "زیرعنوان", - "Successfully Invoices": "", + "Successfully Invoices": "صورت‌حساب های موفق", "Summary": "خلاصه", "System notification": "پیام سیستم", "Table of contents": "فهرست عناوین", @@ -438,11 +455,12 @@ "There is nothing added to card!": "چیزی در سبد خرید وجود ندارد", "There is nothing to show!": "اینجا چیزی برای نمایش وجود ندارد", "There is noting file to show!": "هیچ پرونده ای برای نمایش وجود ندارد", - "This payment method is not available.": "", + "This payment method is not available.": "این روش پرداخت در دسترس نیست", "Ticket added successfully": "تیکت با موفقیت اضافه شد", "Ticket answered successfully": "تیکت پاسخ داده شد", "Tickets": "تیکت‌های پشتیبانی", "Tickets list": "فهرست تیکت‌های پشتیبانی", + "Time spend": "زمان مطالعه", "Tips": "نکات", "Title": "عنوان", "Titles updated": "عنوانین به روز شدند", @@ -451,7 +469,7 @@ "Toggle selection": "برعکس کردن انتخاب", "Total": "همه", "Total price": "مبلغ کل", - "Tracking code": "", + "Tracking code": "کد پیگیری", "Translate": "ترجمه", "Translate model": "ترجمه ماژول", "Translate updated": "ترجمه افزوده شد", @@ -485,6 +503,7 @@ "Visits": "بازدید‌ها", "We recommending add title each images": "به شما پیشنهاد می‌کنیم که برای هر تصویر یک عنوان اضافه کنید", "Website attachments list": "فهرست پیوست‌های سایت", + "Weight": "وزن", "Welcome back": "خوش آمدید", "Width": "عرض", "You": "شما", @@ -503,11 +522,14 @@ "You need at least one address to order, Please add address": "شما برای ادامه فرآیند خرید به حداقل یک نشانی نیاز دارید", "You need complete your information": "شما می‌بایستی اطلاعات خود را تکمیل کنید", "You need to login first": "شما برای ادامه می‌بایستی وارد شوید", - "You need to login to access this page": "", + "You need to login to access this page": "برای دسترسی به این صفحه نیاز به حساب کاربری معتبر دارید", "You need to sign in\/up to continue": "شما برای ادامه نیاز است وارد شوید یا ثبت‌نام کنید", "You try attempts, Try it a few minutes": "تلاش شما از حداکثر درخواستی بیشتر است", "You try more than :COUNT attempts, Try it later": "شما بیش از :COUNT تلاش کردید لطفاً بعداً تلاش کنید", + "Your Authentication Mail": "ایمیل احراز هویت شما", "Your Email sent": "ایمیل شما ارسال شد", + "Your account has been created successfully.": "حساب کاربری شما ساخته شد", + "Your account password has been changed successfully.": "پسورد حساب کاربری شما عوض شد", "Your answer ...": "پاسخ شما", "Your comment has been submitted": "دیدگاه شما ارسال شد", "Your information is insufficient, Please complete your information": "اطلاعات شما ناقص است، لطفا اطلاعات خود را تکمیل کنید", @@ -547,6 +569,7 @@ "pending": "معلق", "rejected": "رد شده", "sign in": "ورود", + "sign up": "ثبت نام", "status": "وضعیت", "title": "عنوان", "user_id": "کاربر", diff --git a/resources/views/admin/guestlogs/guestlog-form.blade.php b/resources/views/admin/guestlogs/guestlog-form.blade.php deleted file mode 100644 index 4b40052..0000000 --- a/resources/views/admin/guestlogs/guestlog-form.blade.php +++ /dev/null @@ -1,42 +0,0 @@ -@extends('admin.templates.panel-form-template') -@section('title') - @if(isset($item)) - {{__("Edit guestlog")}} [{{$item->id}}] - @else - {{__("Add new guestlog")}} - @endif - -@endsection -@section('form') - -
-
- - @include('components.err') -
-

- - {{__("Tips")}} -

-
    -
  • - {{__("Recommends")}} -
  • -
-
- -
-
-
- -

- @if(isset($item)) - {{__("Edit guestlog")}} [{{$item->id}}] - @else - {{__("Add new guestlog")}} - @endif -

- -
-
-
-@endsection diff --git a/resources/views/segments/header/ParallaxHeaderPin/ParallaxHeaderPin.scss b/resources/views/segments/header/ParallaxHeaderPin/ParallaxHeaderPin.scss index 645d4fe..f66e6bb 100644 --- a/resources/views/segments/header/ParallaxHeaderPin/ParallaxHeaderPin.scss +++ b/resources/views/segments/header/ParallaxHeaderPin/ParallaxHeaderPin.scss @@ -4,7 +4,6 @@ height: 270px; color: var(--xshop-diff); padding-top: 3rem; - overflow: hidden; h2{ opacity: .4; @@ -19,9 +18,21 @@ border-bottom-right-radius: 0; border-bottom-left-radius: 0; height: 100px; + position: relative; + &:after{ + position: absolute; + left: 0; + right: 0; + content: ' '; + height: 10px; + bottom: -5px; + background: var(--xshop-background); + } } + .content{ margin-top: -3rem; + position: relative; + z-index: 11; } } diff --git a/resources/views/segments/menu/AplMenu/AplMenu.blade.php b/resources/views/segments/menu/AplMenu/AplMenu.blade.php index dc31fb7..00b2917 100644 --- a/resources/views/segments/menu/AplMenu/AplMenu.blade.php +++ b/resources/views/segments/menu/AplMenu/AplMenu.blade.php @@ -124,9 +124,9 @@