Skip to content

Commit

Permalink
Merge pull request #528 from avored/developed
Browse files Browse the repository at this point in the history
Developed
  • Loading branch information
indpurvesh authored Dec 17, 2020
2 parents 953f119 + 1063fbf commit 3862ba0
Show file tree
Hide file tree
Showing 11 changed files with 239,619 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Barryvdh\Debugbar\Facade;
use Barryvdh\Debugbar\ServiceProvider as DebugbarServiceProvider;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\Facades\Cache;

class AppServiceProvider extends ServiceProvider
{
Expand Down
106,126 changes: 106,125 additions & 1 deletion public/vendor/avored/css/app.css

Large diffs are not rendered by default.

120,573 changes: 120,571 additions & 2 deletions public/vendor/avored/js/app.js

Large diffs are not rendered by default.

12,622 changes: 12,620 additions & 2 deletions public/vendor/avored/js/avored.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions resources/lang/fa/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'failed' => 'اطلاعات کاربری معتبر نیست',
'throttle' => 'تعداد زیادی امتحان اشتباه داشتید :seconds ثانیه دیگر دوباره امتحان کنید.',

];
89 changes: 89 additions & 0 deletions resources/lang/fa/avored.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| AvoRed Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during avored for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'fields' => [
'email' => 'آدرس ایمیل',
'password' => 'رمز عبور',
'first_name' => 'نام',
'last_name' => 'نام خانوادگی',
'password_confirmation' => 'تایید رمز عبور',
'image' => 'تصویر',
'address2' => 'آدرس دوم',
'company_name' => 'نام شرکت',
'phone' => 'شماره تلفن',
'address1' => 'آدرس اول',
'postcode' => 'کد پستی',
'state' => 'منطقه',
'city' => 'شهر',
'country_id' => 'کشور'
],
'properties' => 'مشخصات',
'my_wishlist' => 'علاقه مندی های من',
'customer_wishlists' => 'علاقه مندی ها',
'not_available' => 'موجود نیست',
'add_to_cart' => 'اضافه به سبد',
'add_to_wishlist' => 'اضافه به علاقه مندی',
'remove_to_wishlist' => 'حذف از علاقه مندی',
'availability' => 'موجودی مجموع ',
'home' => 'خانه',
'reset_password' => 'جایگزینی رمز عبور',
'login' => 'ورود',
'password_update' => 'تغییر رمز عبور',
'user_dashboard' => 'داشبورد کاربری',
'show_order' => 'ترتیب نمایش',
'cart' => 'سبد خرید',
'page' => 'صفحه',
'product' => 'محصول',
'qty' => 'تعداد',
'unit_price' => 'قیمت واحد',
'total_price' => 'قیمت کل',
'subtotal' => 'Sub Total',
'discount_coupon' => 'کوپن تخفیف',
'discount' => 'تخفیف',
'total' => 'مجموع',
'checkout' => 'تسویه',
'user_personal_info' => 'مشخصات کاربر',
'user_shipping_address' => 'آدرس ارسال به کاربر',
'user' => 'کاربر',
'billing_address' => 'آدرس کامل',
'btn' => [
'sign_in' => 'ورود',
'register' => 'ثبت نام',
'save' => 'ذخیره',
'cancel' => 'انصراف',
'create' => 'ایجاد',
'apply' => 'اعمال',
'place_order' => 'ترتیب'
],
'pages' => [

'login' => [
'title' => 'به حساب خود وارد شوید',
'remember_me' => 'مرا به خاطر بسپار',
'forgot_password' => 'نام کاربری را فراموش کردید؟'
],
'register' => [
'title' => 'اطلاعات خود را ثبت کنید',
],
'account_dashboard' => [
'title' => 'داشبورد'
],
'home' => [
'weekend' => 'هفته شگفت انگیز'
],

],

];
19 changes: 19 additions & 0 deletions resources/lang/fa/pagination.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/

'previous' => '&laquo; قبلی',
'next' => 'بعدی &raquo;',

];
22 changes: 22 additions & 0 deletions resources/lang/fa/passwords.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/

'password' => 'رمز عبور حداقل باید ۸ کارکتر باشید و با رمز دیگر برابر باشد',
'reset' => 'رمز عبور شما تغییر یافت',
'sent' => 'لینک تغییر رمز عبور برای شما ارسال شد',
'token' => 'توکن تغییر رمز عبور منقضی شده است',
'user' => "کاربری با این آدرس ایمیل یافت نشد",

];
151 changes: 151 additions & 0 deletions resources/lang/fa/validation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':attribute باید مورد قبول باشد',
'active_url' => ':attribute یک مسیر مورد تایید نمیباشد',
'after' => ':attribute باید یک تاریخ بعد از:date باشد.',
'after_or_equal' => ':attribute باید یک تاریخ بعد یا برابر با:date باشد',
'alpha' => ':attribute باید فقط شامل حروف باشد',
'alpha_dash' => ':attribute باید فقط شامل حروف و اعداد و خط تیره و زیر خط باشد',
'alpha_num' => ':attribute فقط باید شامل حروف و اعداد باشد',
'array' => ':attribute باید یک آرایه باشد',
'before' => ':attribute باید یک تاریخ قبل از :date باشد.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'before_or_equal' => ':attribute باید یک تاریخ قبل یا برابر با :date باشد.',
'between' => [
'numeric' => ':attribute باید ما بین :min و :max باشد.',
'file' => ':attribute باید مابین :min و :max کیلو بایت باشد.',
'string' => ':attribute باید مابین :min و :max کارکتر باشد.',
'array' => ':attribute باید مابین :min و :max آیتم باشد.',
],
'boolean' => ':attribute مقادیر باید صحیح یا غلط باشند',
'confirmed' => ':attribute مطابقت برقرار نمی باشد',
'date' => ':attribute یک تاریخ معتبر نمی باشد',
'date_equals' => ':attribute باید یک تاریخ برابر با :date باشد.',
'date_format' => ':attribute با این فرمت :format مطابقت ندارد.',
'different' => ':attribute و :other باید تفاوت داشته باشند.',
'digits' => ':attribute باید این اعداد باشد :digits',
'digits_between' => ':attribute باید مابین :min و :max باشد.',
'dimensions' => ':attribute از ابعاد اشتباه برخوردار است',
'distinct' => ':attribute مقدار تکراری دارد',
'email' => ':attribute باید یک آدرس ایمیل معتبر باشد',
'ends_with' => ':attribute باید با یکی از این مقادیر پایان یابد: :values',
'exists' => ':attribute انتخاب شده اشتباه است.',
'file' => ':attribute باید یک فایل باشد.',
'filled' => ':attribute باید یک مقدار داشته باشد',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'numeric' => ':attribute باید بزرگتر تر از :value باشد.',
'file' => ':attribute باید بزرگتر از :value کیلوبایت.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',

/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/

'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],

/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/

'attributes' => [],

];
2 changes: 1 addition & 1 deletion resources/views/category/card/product.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<input type="hidden" name="slug" value="{{ $product->slug }}" />
<input type="hidden" name="qty" value="1" />
<button type="submit" class="px-3 py-1 bg-red-500 text-white text-sm font-semibold rounded">
Add to cart
{{__('avored.add_to_cart')}}
</button>
</form>
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/product/type/variable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<a-input-number :min="1" :default-value="1" @change="changeQty" name="qty"></a-input-number>
<a-button html-type="submit" type="primary">
<a-icon type="shopping_cart"></a-icon>
Add To Cart
{{__('avored.add_to_cart')}}
</a-button>
<input type="hidden" name="slug" value="{{ $product->slug }}" />
<input type="hidden" name="qty" v-model="qty" />
Expand Down

0 comments on commit 3862ba0

Please sign in to comment.