Skip to content

Commit

Permalink
fix validation and update UI and add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Apr 25, 2024
1 parent f572e9c commit 393b4ab
Show file tree
Hide file tree
Showing 8 changed files with 395 additions and 38 deletions.
175 changes: 174 additions & 1 deletion resources/lang/ar.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,176 @@
{

"Update Product Alerts": "تحديث تنبيهات المنتج",
"Has Stock Alert": "لديه تنبيه بالمخزون",
"Max Stock Alert": "حد أقصى لتنبيه المخزون",
"Min Stock Alert": "حد أدنى لتنبيه المخزون",
"Has Max Cart By Order": "لديه حد أقصى للعربة في الطلب",
"Max Cart By Order": "حد أقصى للعربة في الطلب",
"Min Cart By Order": "حد أدنى للعربة في الطلب",
"Save": "حفظ",
"Cancel": "إلغاء",
"Update Brand": "تحديث العلامة التجارية",
"Add Brand": "إضافة علامة تجارية",
"Name": "الاسم",
"Key": "المفتاح",
"Icon": "الأيقونة",
"Color": "اللون",
"Products Brands": "علامات منتجات",
"Back": "العودة",
"There are no items to show.": "لا توجد عناصر لعرضها.",
"Attach Category": "إرفاق الفئة",
"Category": "الفئة",
"Update Category": "تحديث الفئة",
"Add Category": "إضافة فئة",
"Image": "الصورة",
"Parent": "الأب",
"Slug": "الرابط المختصر",
"Activated": "مُفعل",
"Show In Menu": "عرض في القائمة",
"Delete": "حذف",
"Product Categories": "فئات المنتجات",
"Update Product Media": "تحديث وسائط المنتج",
"Images": "الصور",
"Featured Image": "الصورة المميزة",
"Update Option": "تحديث الخيار",
"Add Option": "إضافة خيار",
"Products Options": "خيارات المنتجات",
"Add": "إضافة",
"Update Product Options": "تحديث خيارات المنتج",
"Has options": "لديه خيارات",
"Total QTY: ": "الكمية الإجمالية: ",
"Price": "السعر",
"Discount": "التخفيض",
"Discount To": "التخفيض إلى",
"Vat": "الضريبة المضافة",
"Stock QTY": "الكمية في المخزون",
"QTY": "الكمية",
"Max Alert": "تنبيه الحد الأقصى",
"Min Alert": "تنبيه الحد الأدنى",
"Update Product Multi Prices": "تحديث أسعار المنتج المتعددة",
"Has multi price": "لديه أسعار متعددة",
"Website": "الموقع الإلكتروني",
"Mobile": "الجوال",
"POS": "POS",
"Items": "العناصر",
"ProductReview": "مراجعة المنتج",
"Product id": "معرف المنتج",
"Account id": "معرف الحساب",
"Rate": "تقييم",
"Review": "مراجعة",
"Is activated": "مفعل",
"product-reviews": "مراجعات المنتج",
"Update Product SEO": "تحديث تحسين محركات البحث للمنتج",
"Description": "الوصف",
"Details": "التفاصيل",
"Keywords": "الكلمات الرئيسية",
"Main Category": "الفئة الرئيسية",
"Categories": "الفئات",
"Tags": "العلامات",
"Brand": "العلامة التجارية",
"Update Product Shipping Info": "تحديث معلومات شحن المنتج",
"Is shipped": "تم الشحن",
"Unit": "الوحدة",
"Weight": "الوزن",
"Update Tag": "تحديث العلامة",
"Add Tag": "إضافة علامة",
"Product Tags": "علامات المنتج",
"Update Unit": "تحديث الوحدة",
"Add Unit": "إضافة وحدة",
"Products Units": "وحدات المنتجات",
"Product": "المنتج",
"Type": "النوع",
"Digital": "رقمي",
"About": "حول",
"Sku": "كود المنتج",
"Barcode": "الباركود",
"Is Activated": "مُفعل",
"Import Product": "استيراد المنتج",
"Please Check This XLSX file before create new one": "يرجى التحقق من ملف XLSX هذا قبل إنشاء واحد جديد",
"Please add your XLSX file": "يرجى إضافة ملف XLSX الخاص بك",
"Import Products": "استيراد المنتجات",
"Create Category": "إنشاء فئة",
"Product Options": "خيارات المنتج",
"Product Brands": "علامات المنتج",
"Product Units": "وحدات المنتج",
"Attach Products To Inventory Reqeuest": "ربط المنتجات بطلب المخزون الجديد",
"The Following Products will be attached to new inventory request": "سيتم ربط المنتجات التالية بطلب المخزون الجديد",
"Confirm": "تأكيد",
"Product Trending": "المنتجات الشائعة",
"Product Not Trend": "المنتجات غير الشائعة",
"Hide Product": "إخفاء المنتج",
"Show Product": "عرض المنتج",
"Edit Product": "تعديل المنتج",
"Copy Product Link": "نسخ رابط المنتج",
"Clone Product": "استنساخ المنتج",
"Product SEO": "تحسين محركات البحث للمنتج",
"Product Shipping": "شحن المنتج",
"Product Prices": "أسعار المنتج",
"Product Reviews": "تقييمات المنتج",
"Print Product Inventory Report": "طباعة تقرير المخزون للمنتج",
"Print Product Orders Report": "طباعة تقرير الطلبات للمنتج",
"Delete Product": "حذف المنتج",
"Product Name": "اسم المنتج",
"Product In Stock QTY": "كمية المنتج في المخزون",
"QTY on Stock": "الكمية في المخزون",
"Product Has Unlimited Stock": "المنتج لديه مخزون غير محدود",
"Options": "الخيارات",
"Product Main Category": "الفئة الرئيسية للمنتج",
"Attach Products To New Order": "ربط المنتجات بطلب جديد",
"The Following Products will be attached to new order": "سيتم ربط المنتجات التالية بطلب جديد",
"Print Product Order Report": "طباعة تقرير الطلب للمنتج",
"Printed At": "تم الطباعة في",
"Printed By": "تم الطباعة بواسطة",
"ID": "المعرف",
"User": "المستخدم",
"Branch": "الفرع",
"Order": "الطلب",
"Status": "الحالة",
"Total": "الإجمالي",
"SKU": "رمز المنتج",
"QNT": "الكمية",
"Orders Count": "عدد الطلبات",
"Orders Total": "إجمالي الطلبات",
"products": "المنتجات",
"Discount to": "خصم على",
"Is trend": "هل هو رائج",
"Is in stock": "متوفر في المخزون",
"Has unlimited stock": "لديه مخزون غير محدود",
"Has max cart": "لديه سلة الشراء القصوى",
"Min cart": "الحد الأدنى لسلة الشراء",
"Max cart": "الحد الأقصى لسلة الشراء",
"Has Stock alert": "لديه تنبيه المخزون",
"Min Stock alert": "تنبيه المخزون الأدنى",
"Max Stock alert": "تنبيه المخزون الأقصى",
"Edit": "تعديل",
"Option has been updated successfully": "تم تحديث الخيار بنجاح",
"Option deleted successfully": "تم حذف الخيار بنجاح",
"Category updated successfully!": "تم تحديث الفئة بنجاح!",
"Category created successfully!": "تم إنشاء الفئة بنجاح!",
"Category deleted successfully": "تم حذف الفئة بنجاح",
"Product Categories has been updated": "تم تحديث فئات المنتج بنجاح",
"Product updated successfully": "تم تحديث المنتج بنجاح",
"Product deleted successfully": "تم حذف المنتج بنجاح",
"Product cloned successfully": "تم استنساخ المنتج بنجاح",
"Your File Has Been Imported Successfully": "تم استيراد ملفك بنجاح",
"ProductReview updated successfully": "تم تحديث تقييم المنتج بنجاح",
"ProductReview deleted successfully": "تم حذف تقييم المنتج بنجاح",
"Tag updated successfully!": "تم تحديث العلامة بنجاح!",
"Tag created successfully!": "تم إنشاء العلامة بنجاح!",
"Tag deleted successfully": "تم حذف العلامة بنجاح",
"ProductReview Has Been Deleted": "تم حذف تقييم المنتج",
"Id": "المعرف",
"Account": "الحساب",
"Is Activated?": "هل تم التنشيط؟",
"Is Trend?": "هل هو رائج؟",
"Is Shipped?": "هل تم الشحن؟",
"Has Options?": "هل لديه خيارات؟",
"Has unlimited stock?": "هل لديه مخزون غير محدود؟",
"Category id": "معرف الفئة",
"Has socket alert": "لديه تنبيه المخزون",
"Min socket alert": "تنبيه المخزون الأدنى",
"Max socket alert": "تنبيه المخزون الأقصى",
"Product Has Been Deleted": "تم حذف المنتج",
"Create Inventory Request": "إنشاء طلب جديد للمخزون",
"Create New Order": "إنشاء طلب جديد",
"Products": "المنتجات"
}
175 changes: 174 additions & 1 deletion resources/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,176 @@
{

"Update Product Alerts": "Update Product Alerts",
"Has Stock Alert": "Has Stock Alert",
"Max Stock Alert": "Max Stock Alert",
"Min Stock Alert": "Min Stock Alert",
"Has Max Cart By Order": "Has Max Cart By Order",
"Max Cart By Order": "Max Cart By Order",
"Min Cart By Order": "Min Cart By Order",
"Save": "Save",
"Cancel": "Cancel",
"Update Brand": "Update Brand",
"Add Brand": "Add Brand",
"Name": "Name",
"Key": "Key",
"Icon": "Icon",
"Color": "Color",
"Products Brands": "Products Brands",
"Back": "Back",
"There are no items to show.": "There are no items to show.",
"Attach Category": "Attach Category",
"Category": "Category",
"Update Category": "Update Category",
"Add Category": "Add Category",
"Image": "Image",
"Parent": "Parent",
"Slug": "Slug",
"Activated": "Activated",
"Show In Menu": "Show In Menu",
"Delete": "Delete",
"Product Categories": "Product Categories",
"Update Product Media": "Update Product Media",
"Images": "Images",
"Featured Image": "Featured Image",
"Update Option": "Update Option",
"Add Option": "Add Option",
"Products Options": "Products Options",
"Add": "Add",
"Update Product Options": "Update Product Options",
"Has options": "Has options",
"Total QTY: ": "Total QTY: ",
"Price": "Price",
"Discount": "Discount",
"Discount To": "Discount To",
"Vat": "Vat",
"Stock QTY": "Stock QTY",
"QTY": "QTY",
"Max Alert": "Max Alert",
"Min Alert": "Min Alert",
"Update Product Multi Prices": "Update Product Multi Prices",
"Has multi price": "Has multi price",
"Website": "Website",
"Mobile": "Mobile",
"POS": "POS",
"Items": "Items",
"ProductReview": "ProductReview",
"Product id": "Product id",
"Account id": "Account id",
"Rate": "Rate",
"Review": "Review",
"Is activated": "Is activated",
"product-reviews": "product-reviews",
"Update Product SEO": "Update Product SEO",
"Description": "Description",
"Details": "Details",
"Keywords": "Keywords",
"Main Category": "Main Category",
"Categories": "Categories",
"Tags": "Tags",
"Brand": "Brand",
"Update Product Shipping Info": "Update Product Shipping Info",
"Is shipped": "Is shipped",
"Unit": "Unit",
"Weight": "Weight",
"Update Tag": "Update Tag",
"Add Tag": "Add Tag",
"Product Tags": "Product Tags",
"Update Unit": "Update Unit",
"Add Unit": "Add Unit",
"Products Units": "Products Units",
"Product": "Product",
"Type": "Type",
"Digital": "Digital",
"About": "About",
"Sku": "Sku",
"Barcode": "Barcode",
"Is Activated": "Is Activated",
"Import Product": "Import Product",
"Please Check This XLSX file before create new one": "Please Check This XLSX file before create new one",
"Please add your XLSX file": "Please add your XLSX file",
"Import Products": "Import Products",
"Create Category": "Create Category",
"Product Options": "Product Options",
"Product Brands": "Product Brands",
"Product Units": "Product Units",
"Attach Products To Inventory Reqeuest": "Attach Products To Inventory Reqeuest",
"The Following Products will be attached to new inventory request": "The Following Products will be attached to new inventory request",
"Confirm": "Confirm",
"Product Trending": "Product Trending",
"Product Not Trend": "Product Not Trend",
"Hide Product": "Hide Product",
"Show Product": "Show Product",
"Edit Product": "Edit Product",
"Copy Product Link": "Copy Product Link",
"Clone Product": "Clone Product",
"Product SEO": "Product SEO",
"Product Shipping": "Product Shipping",
"Product Prices": "Product Prices",
"Product Reviews": "Product Reviews",
"Print Product Inventory Report": "Print Product Inventory Report",
"Print Product Orders Report": "Print Product Orders Report",
"Delete Product": "Delete Product",
"Product Name": "Product Name",
"Product In Stock QTY": "Product In Stock QTY",
"QTY on Stock": "QTY on Stock",
"Product Has Unlimited Stock": "Product Has Unlimited Stock",
"Options": "Options",
"Product Main Category": "Product Main Category",
"Attach Products To New Order": "Attach Products To New Order",
"The Following Products will be attached to new order": "The Following Products will be attached to new order",
"Print Product Order Report": "Print Product Order Report",
"Printed At": "Printed At",
"Printed By": "Printed By",
"ID": "ID",
"User": "User",
"Branch": "Branch",
"Order": "Order",
"Status": "Status",
"Total": "Total",
"SKU": "SKU",
"QNT": "QNT",
"Orders Count": "Orders Count",
"Orders Total": "Orders Total",
"products": "products",
"Discount to": "Discount to",
"Is trend": "Is trend",
"Is in stock": "Is in stock",
"Has unlimited stock": "Has unlimited stock",
"Has max cart": "Has max cart",
"Min cart": "Min cart",
"Max cart": "Max cart",
"Has Stock alert": "Has Stock alert",
"Min Stock alert": "Min Stock alert",
"Max Stock alert": "Max Stock alert",
"Edit": "Edit",
"Option has been updated successfully": "Option has been updated successfully",
"Option deleted successfully": "Option deleted successfully",
"Category updated successfully!": "Category updated successfully!",
"Category created successfully!": "Category created successfully!",
"Category deleted successfully": "Category deleted successfully",
"Product Categories has been updated": "Product Categories has been updated",
"Product updated successfully": "Product updated successfully",
"Product deleted successfully": "Product deleted successfully",
"Product cloned successfully": "Product cloned successfully",
"Your File Has Been Imported Successfully": "Your File Has Been Imported Successfully",
"ProductReview updated successfully": "ProductReview updated successfully",
"ProductReview deleted successfully": "ProductReview deleted successfully",
"Tag updated successfully!": "Tag updated successfully!",
"Tag created successfully!": "Tag created successfully!",
"Tag deleted successfully": "Tag deleted successfully",
"ProductReview Has Been Deleted": "ProductReview Has Been Deleted",
"Id": "Id",
"Account": "Account",
"Is Activated?": "Is Activated?",
"Is Trend?": "Is Trend?",
"Is Shipped?": "Is Shipped?",
"Has Options?": "Has Options?",
"Has unlimited stock?": "Has unlimited stock?",
"Category id": "Category id",
"Has socket alert": "Has socket alert",
"Min socket alert": "Min socket alert",
"Max socket alert": "Max socket alert",
"Product Has Been Deleted": "Product Has Been Deleted",
"Create Inventory Request": "Create Inventory Request",
"Create New Order": "Create New Order",
"Products": "Products"
}
4 changes: 2 additions & 2 deletions resources/views/product-options/product.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="w-full flex flex-col gap-4">
<div v-for="(item, key) in response">
<x-splade-toggle>
<button :class="{'bg-primary-200 rounded-t-lg ' : toggled , 'bg-gray-100 rounded-lg ' : !toggled}" class="flex justify-between gap-4 p-4 w-full" @click.prevent="toggle">
<button :class="{'bg-primary-600 dark:bg-zinc-700 rounded-t-lg ' : toggled , 'bg-zinc-100 dark:bg-zinc-900 dark:text-white rounded-lg ' : !toggled}" class="flex justify-between gap-4 p-4 w-full" @click.prevent="toggle">
<div class="flex justify-start gap-2">
<div class="flex flex-col justify-center items-center">
<i class="bx bxs-plus-square"></i>
Expand All @@ -43,7 +43,7 @@
</div>
</div>
</button>
<div class="border border-primary-200 grid grid-cols-4 gap-4 p-4 rounded-b-lg" v-show="toggled">
<div class="border border-primary-600 dark:border-zinc-700 grid grid-cols-4 gap-4 p-4 rounded-b-lg" v-show="toggled">
<x-splade-input label="{{__('Price')}}" v-model="form.qty[item.toString()+',price']" class="col-span-4" :placeholder="__('Price')" type="number" />
<x-splade-input label="{{__('Discount')}}" v-model="form.qty[item.toString()+',discount']" class="col-span-2" :placeholder="__('Discount')" type="number" />
<x-splade-input label="{{__('Discount To')}}" date time v-model="form.qty[item.toString()+',discount_to']" class="col-span-2" :placeholder="__('Discount To')" type="number" />
Expand Down
Loading

0 comments on commit 393b4ab

Please sign in to comment.