Skip to content

Commit

Permalink
fixed template list bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Sep 4, 2024
1 parent 0de66aa commit 6c45d9a
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 39 deletions.
39 changes: 30 additions & 9 deletions resources/lang/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"Add new discount": "افزودن یک تخفیف",
"Add new gallery": "افزودن یک گالری",
"Add new group": "افزودن یک سرفصل",
"Add new invoice": "",
"Add new language": "افزودن یک زبان جدید",
"Add new menu": "افزودن فهرست جدید",
"Add new post": "افزودن یک نوشته",
Expand Down Expand Up @@ -81,8 +82,8 @@
"As you wished sort saved": "همانطور که شما مایل بودید مرتب شدند",
"As you wished updated successfully": "همانطور که شما مایل بودید به روز شد",
"Attaching": "پیوست کردن",
"Attachments": "پیوست‌ها",
"Attachment": "پیوست",
"Attachments": "پیوست‌ها",
"Attachments list": "فهرست پیوست ها",
"Auth code": "کد احراز هویت",
"Auth code is invalid": "کد احراز هویت اشتباه اسات",
Expand Down Expand Up @@ -113,8 +114,8 @@
"Cities list": "فهرست شهرها",
"City": "شهر",
"Click here to upload or drag and drop here": "برای بارگزاری اینجا کلیک کنید یا موارد را کشیده و اینجا رها کنید",
"Clips list": "فهرست کلیپ‌ها",
"Clip": "کلیپ‌ها",
"Clips list": "فهرست کلیپ‌ها",
"Close": "بستن",
"Code": "کد",
"Colleague": "همکار",
Expand All @@ -138,6 +139,7 @@
"Credit history": "تاریخچه اعتبار",
"Credits": "اعتبارات",
"Customer": "مشتری",
"Customer mobile": "",
"Customers": "مشتری‌ها",
"Customers list": "فهرست مشتری‌ها",
"Dashboard": "پیشخوان",
Expand Down Expand Up @@ -177,6 +179,7 @@
"Edit discount": "ویرایش تخفیف",
"Edit gallery": "ویرایش گالری",
"Edit group": "ویرایش سرفصل",
"Edit invoice": "",
"Edit language": "ویرایش زبان",
"Edit menu": "ویرایش فهرست",
"Edit post": "ویرایش نوشته",
Expand All @@ -197,6 +200,7 @@
"Expire date": "تاریخ انقضا",
"Expire date": "تاریخ انقضا",
"Extra description": "توضیحات اضافه",
"Failed Invoices": "",
"False": "خیر",
"Favorites": "علاقه‌مندی‌ها",
"Feature image": "تصویر شاخص",
Expand All @@ -208,14 +212,15 @@
"Find more": "موارد بیشتر",
"Flag": "پرچم",
"Floats": "شناورها",
"Follow us": "",
"Forgot Your Password?": "آیا گذرواژه خود را فراموش کردید",
"From - To": "از - تا",
"GFX": "طراحی",
"GFX of website updated": "گرافیک سایت به روز شد",
"Gfxes": "طراحی‌ها",
"Galleries": "گالری‌ها",
"Gallery": "گالری",
"Galleries list": "فهرست گالری‌ها",
"Gallery": "گالری",
"Gfxes": "طراحی‌ها",
"Graphic": "گرافیک",
"Group": "سرفصل",
"Group Parent": "والد سرفصل",
Expand All @@ -225,17 +230,22 @@
"Groups list": "فهرست سرفصل‌ها",
"Guest": "میهمان",
"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 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 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": "تصویر",
"Image deleted successfully": "تصویر حذف شد",
"Image uploaded successfully": "تصویر افزوده شد",
"Images": "تصاویر",
"Increase \/ decrease by Admin": "افزودن \/ کاهش توسط مدیر سایت",
"Increase by Admin removed:": "",
"Index": "صفحه نخست",
"Index image": "تصویر شاخص",
"Information": "اطلاعات",
Expand All @@ -244,8 +254,10 @@
"Invalid json file!": "فایل جی‌سان معتبر نیست",
"Invalid morph": "چند ریخیتی نا معتبر",
"Invoice": "صورت حساب",
"Invoice ID:": "",
"Invoice payed.": "صورت‌حساب پرداخت شد",
"Invoices": "صورت‌حساب‌ها",
"Invoices list": "",
"Is default": "آی پیش‌فرض است",
"Is effective price?": "آیا در قیمت تاثیر دارد؟",
"Is fillable": "قابل نمایش",
Expand Down Expand Up @@ -287,6 +299,7 @@
"Next": "بعدی",
"No parent": "بدون والد",
"Not required": "غیر ضرروری",
"Order removed successfully": "",
"Orders": "سفارشاات",
"Orders count": "تعداد سفارش",
"Password": "گذرواژه",
Expand All @@ -310,6 +323,7 @@
"Preview": "پیش‌نمایش",
"Previous": "قبلی",
"Price": "مبلغ",
"Print": "",
"Product": "محصول",
"Product added to compare": "محصول به فهرست مقایسه افزوده شد",
"Product added to favorites": "محصول به علاقه‌مندی شما افزوده شد",
Expand Down Expand Up @@ -342,6 +356,7 @@
"Related products": "محصولات مشابه",
"Remember Me": "مرا به خاطر بسپار",
"Remove": "حذف",
"Removed": "مورد حذف شده",
"Reply": "پاسخ",
"Reply comment": "پاسخ دیدگاه",
"Reply message...": "پاسخ پیام...",
Expand Down Expand Up @@ -373,9 +388,11 @@
"Setting": "تنظیمات",
"Setting added to website": "تنظیم به سایت اضافه شد",
"Setting of website updated": "تنظیمات به روز شدند",
"Settings": "تنظیمات",
"Shopping card": "سبد خرید",
"Show": "نمایش",
"Show list": "نمایش فهرست",
"Sign in as customer": "",
"Sign-in": "ورود",
"Sign-out": "خروج",
"Signed in successfully": "با موفقیت وارد شدید",
Expand All @@ -396,6 +413,7 @@
"Subject": "عنوان",
"Submit new ticket": "ارسال یک تیکت جدید",
"Subtitle": "زیرعنوان",
"Successfully Invoices": "",
"Summary": "خلاصه",
"System notification": "پیام سیستم",
"Tag": "برچسب",
Expand All @@ -408,6 +426,7 @@
"There is nothing added to card!": "چیزی در سبد خرید وجود ندارد",
"There is nothing to show!": "اینجا چیزی برای نمایش وجود ندارد",
"There is noting file to show!": "هیچ پرونده ای برای نمایش وجود ندارد",
"This payment method is not available.": "",
"Ticket added successfully": "تیکت با موفقیت اضافه شد",
"Ticket answered successfully": "تیکت پاسخ داده شد",
"Tickets": "تیکت‌های پشتیبانی",
Expand All @@ -420,6 +439,7 @@
"Toggle selection": "برعکس کردن انتخاب",
"Total": "همه",
"Total price": "مبلغ کل",
"Tracking code": "",
"Translate": "ترجمه",
"Translate model": "ترجمه ماژول",
"Translate updated": "ترجمه افزوده شد",
Expand Down Expand Up @@ -469,6 +489,7 @@
"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 sign in\/up to continue": "شما برای ادامه نیاز است وارد شوید یا ثبت‌نام کنید",
"You try attempts, Try it a few minutes": "تلاش شما از حداکثر درخواستی بیشتر است",
"You try more than :COUNT attempts, Try it later": "شما بیش از :COUNT تلاش کردید لطفاً بعداً تلاش کنید",
Expand All @@ -489,30 +510,30 @@
"area :NAME of website updated": "محیط :NAME وبسایت به روز شد",
"article": "مقاله",
"click here to request another": "برای ایجاد درخواست دیگر اینجا کلیک کنید",
"emoji": "ایموجی",
"customer_id": "مشتری",
"email": "رایانامه",
"emoji": "ایموجی",
"error in payment.": "خطا در پرداخت",
"error in payment. contact admin.": "خطا در پرداخت با مدیر وبسایت تماس بگیرید",
"image": "تصویر",
"invoice": "صورت حساب",
"jpg": "",
"minute": "دقیقه",
"minute(s)": "دقیقه",
"mobile": "موبایل",
"name": "نام",
"news": "خبر",
"mobile": "موبایل",
"not searchable": "غیرقابل جستجو",
"one second ago": "یک ثانیه پیش",
"password repeat": "تکرار گذرواژه",
"payment success": "پرداخت موفق بود",
"pending": "معلق",
"rejected": "رد شده",
"sign in": "ورود",
"webp": "",
"xShop": "",
"status": "وضعیت",
"title": "عنوان",
"customer_id": "مشتری",
"user_id": "کاربر",
"webp": "",
"xShop": "",
"yesterday": "دیروز"
}
82 changes: 52 additions & 30 deletions resources/views/admin/templates/panel-list-template.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@
<tr>
<th>
<div
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-custom-class="custom-tooltip"
data-bs-title="{{__("Check all")}}"
class="form-check form-switch mt-1 mx-2">
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-custom-class="custom-tooltip"
data-bs-title="{{__("Check all")}}"
class="form-check form-switch mt-1 mx-2">
<input class="form-check-input chkall"
type="checkbox" role="switch">
</div>
Expand Down Expand Up @@ -178,35 +178,56 @@ class="form-check form-switch mt-1 mx-2">
{{ $item->parent?->{$cols[0]}??'-' }}
@break
@case('status')
<div class="model-status status-{{$item->status}} float-start" data-bs-toggle="tooltip"
<div class="model-status status-{{$item->status}} float-start"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-custom-class="custom-tooltip"
data-bs-title="{{$item->status}}"></div>
@break
@case('user_id')
<a href="{{route('admin.user.edit',$item->user?->email)}}">
{{ $item->user?->name??'-' }}
</a>
@if($item->user != null)
<a href="{{route('admin.user.edit',$item->user?->email)}}">
{{ $item->user?->name??'-' }}
</a>
@else
{{__("Removed")}}
@endif
@break
@case('customer_id')
<a href="{{route('admin.customer.edit',$item->customer?->id)}}">
{{ $item->customer?->name??'-' }}
</a>
@if($item->customer != null)
<a href="{{route('admin.customer.edit',$item->customer?->id)}}">
{{ $item->customer?->name??'-' }}
</a>
@else
{{__("Removed")}}
@endif
@break
@case('category_id')
<a href="{{route('admin.category.edit',$item->category?->slug)}}">
{{ $item->category?->name??'-' }}
</a>
@if($item->category != null)
<a href="{{route('admin.category.edit',$item->category?->slug)}}">
{{ $item->category?->name??'-' }}
</a>
@else
{{__("Removed")}}
@endif
@break
@case('state_id')
<a href="{{route('admin.category.edit',$item->state?->id)}}">
{{ $item->state?->name??'-' }}
</a>
@if($item->state != null)
<a href="{{route('admin.state.edit',$item->state?->id)}}">
{{ $item->state?->name??'-' }}
</a>
@else
{{__("Removed")}}
@endif
@break
@case('product_id')
<a href="{{route('admin.product.edit',$item->product?->slug)}}">
{{ $item->product?->name??'-' }}
</a>
@if($item->product != null)
<a href="{{route('admin.product.edit',$item->product?->slug)}}">
{{ $item->product?->name??'-' }}
</a>
@else
{{__("Removed")}}
@endif
@break
@case('expire')
@case('created_at')
Expand Down Expand Up @@ -260,15 +281,16 @@ class="btn btn-success btn-sm mx-1 d-xl-none d-xxl-none"
</a>
</li>
@endforeach
@if(config('app.xlang.active') && isset($item->translatable))
@if(config('app.xlang.active') && isset($item->translatable))
<li>
<a class="dropdown-item" href="{{route('admin.lang.model',[$item->id, get_class($item)])}}">
<a class="dropdown-item"
href="{{route('admin.lang.model',[$item->id, get_class($item)])}}">
<i class="ri-translate"></i>
&nbsp;
{{__("Translate")}}
</a>
</li>
@endif
@endif
</ul>
</div>
@endif
Expand Down Expand Up @@ -333,12 +355,12 @@ class="btn btn-outline-secondary translat-btn btn-sm mx-1">
<div class="row">
<div class="col-md-3 text-start">
<div
id="toggle-select"
class="btn btn-outline-light mx-2"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-custom-class="custom-tooltip"
data-bs-title="{{__("Toggle selection")}}">
id="toggle-select"
class="btn btn-outline-light mx-2"
data-bs-toggle="tooltip"
data-bs-placement="top"
data-bs-custom-class="custom-tooltip"
data-bs-title="{{__("Toggle selection")}}">
<i class="ri-toggle-line"></i>
</div>
</div>
Expand Down

0 comments on commit 6c45d9a

Please sign in to comment.