Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inline assignment causes error #1688

Closed
wants to merge 8 commits into from
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
2. [Documentation](#documentation)
3. [Requirements](#requirements)
4. [Installation & Configuration](#installation-and-configuration)
4. [Docker Installation](https://devdocs.krayincrm.com/2.0/introduction/docker.html)
5. [License](#license)
6. [Security Vulnerabilities](#security-vulnerabilities)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ public function edit(int $id): View
public function view(int $id): View
{
$lead = $this->leadRepository->findOrFail($id);


$userIds = bouncer()->getAuthorizedUserIds();

if (
$userIds = bouncer()->getAuthorizedUserIds()
$userIds
&& ! in_array($lead->user_id, $userIds)
) {
return redirect()->route('admin.leads.index');
Expand Down
308 changes: 308 additions & 0 deletions packages/Webkul/Installer/src/Resources/lang/vi/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@
<?php

return [
'seeders' => [
'attributes' => [
'leads' => [
'description' => 'Mô tả',
'expected-close-date' => 'Ngày dự kiến đóng',
'lead-value' => 'Giá trị cơ hội',
'sales-owner' => 'Chủ sở hữu bán hàng',
'source' => 'Nguồn',
'title' => 'Tiêu đề',
'type' => 'Loại',
'pipeline' => 'Kênh bán hàng',
'stage' => 'Giai đoạn',
],

'persons' => [
'contact-numbers' => 'Số điện thoại liên hệ',
'emails' => 'Email',
'job-title' => 'Chức vụ',
'name' => 'Tên',
'organization' => 'Tổ chức',
'sales-owner' => 'Chủ sở hữu bán hàng',
],

'organizations' => [
'address' => 'Địa chỉ',
'name' => 'Tên',
'sales-owner' => 'Chủ sở hữu bán hàng',
],

'products' => [
'description' => 'Mô tả',
'name' => 'Tên',
'price' => 'Giá',
'quantity' => 'Số lượng',
'sku' => 'SKU',
],

'quotes' => [
'adjustment-amount' => 'Số tiền điều chỉnh',
'billing-address' => 'Địa chỉ thanh toán',
'description' => 'Mô tả',
'discount-amount' => 'Số tiền giảm giá',
'discount-percent' => 'Phần trăm giảm giá',
'expired-at' => 'Hết hạn vào',
'grand-total' => 'Tổng cộng',
'person' => 'Người',
'sales-owner' => 'Chủ sở hữu bán hàng',
'shipping-address' => 'Địa chỉ giao hàng',
'sub-total' => 'Tổng phụ',
'subject' => 'Chủ đề',
'tax-amount' => 'Số tiền thuế',
],

'warehouses' => [
'contact-address' => 'Địa chỉ liên hệ',
'contact-emails' => 'Email liên hệ',
'contact-name' => 'Tên người liên hệ',
'contact-numbers' => 'Số điện thoại liên hệ',
'description' => 'Mô tả',
'name' => 'Tên',
],
],

'email' => [
'activity-created' => 'Hoạt động đã được tạo',
'activity-modified' => 'Hoạt động đã được chỉnh sửa',
'date' => 'Ngày',
'new-activity' => 'Bạn có một hoạt động mới, vui lòng xem chi tiết bên dưới',
'new-activity-modified' => 'Bạn có một hoạt động mới đã được chỉnh sửa, vui lòng xem chi tiết bên dưới',
'participants' => 'Người tham gia',
'title' => 'Tiêu đề',
'type' => 'Loại',
],

'lead' => [
'pipeline' => [
'default' => 'Kênh bán hàng mặc định',

'pipeline-stages' => [
'follow-up' => 'Theo dõi',
'lost' => 'Mất',
'negotiation' => 'Đàm phán',
'new' => 'Mới',
'prospect' => 'Triển vọng',
'won' => 'Thắng',
],
],

'source' => [
'direct' => 'Trực tiếp',
'email' => 'Email',
'phone' => 'Điện thoại',
'web' => 'Web',
'web-form' => 'Mẫu web',
],

'type' => [
'existing-business' => 'Kinh doanh hiện tại',
'new-business' => 'Kinh doanh mới',
],
],

'user' => [
'role' => [
'administrator-role' => 'Vai trò quản trị viên',
'administrator' => 'Quản trị viên',
],
],

'workflow' => [
'email-to-participants-after-activity-updation' => 'Email đến người tham gia sau khi cập nhật hoạt động',
'email-to-participants-after-activity-creation' => 'Email đến người tham gia sau khi tạo hoạt động',
],
],

'installer' => [
'index' => [
'create-administrator' => [
'admin' => 'Quản trị viên',
'krayin' => 'Krayin',
'confirm-password' => 'Xác nhận mật khẩu',
'email' => 'Email',
'email-address' => '[email protected]',
'password' => 'Mật khẩu',
'title' => 'Tạo quản trị viên',
],

'environment-configuration' => [
'algerian-dinar' => 'Dinar Algérie (DZD)',
'allowed-currencies' => 'Các loại tiền tệ được phép',
'allowed-locales' => 'Các địa phương được phép',
'application-name' => 'Tên ứng dụng',
'argentine-peso' => 'Peso Argentina (ARS)',
'australian-dollar' => 'Đô la Úc (AUD)',
'krayin' => 'Krayin',
'bangladeshi-taka' => 'Taka Bangladesh (BDT)',
'brazilian-real' => 'Real Brasil (BRL)',
'british-pound-sterling' => 'Bảng Anh (GBP)',
'canadian-dollar' => 'Đô la Canada (CAD)',
'cfa-franc-bceao' => 'Franc CFA BCEAO (XOF)',
'cfa-franc-beac' => 'Franc CFA BEAC (XAF)',
'chilean-peso' => 'Peso Chile (CLP)',
'chinese-yuan' => 'Nhân dân tệ Trung Quốc (CNY)',
'colombian-peso' => 'Peso Colombia (COP)',
'czech-koruna' => 'Koruna Séc (CZK)',
'danish-krone' => 'Krone Đan Mạch (DKK)',
'database-connection' => 'Kết nối cơ sở dữ liệu',
'database-hostname' => 'Tên máy chủ cơ sở dữ liệu',
'database-name' => 'Tên cơ sở dữ liệu',
'database-password' => 'Mật khẩu cơ sở dữ liệu',
'database-port' => 'Cổng cơ sở dữ liệu',
'database-prefix' => 'Tiền tố cơ sở dữ liệu',
'database-username' => 'Tên người dùng cơ sở dữ liệu',
'default-currency' => 'Tiền tệ mặc định',
'default-locale' => 'Ngôn ngữ mặc định',
'default-timezone' => 'Múi giờ mặc định',
'default-url' => 'URL mặc định',
'default-url-link' => 'https://localhost',
'egyptian-pound' => 'Bảng Ai Cập (EGP)',
'euro' => 'Euro (EUR)',
'fijian-dollar' => 'Đô la Fiji (FJD)',
'hong-kong-dollar' => 'Đô la Hồng Kông (HKD)',
'hungarian-forint' => 'Forint Hungary (HUF)',
'indian-rupee' => 'Rupee Ấn Độ (INR)',
'indonesian-rupiah' => 'Rupiah Indonesia (IDR)',
'israeli-new-shekel' => 'Shekel mới Israel (ILS)',
'japanese-yen' => 'Yên Nhật (JPY)',
'jordanian-dinar' => 'Dinar Jordan (JOD)',
'kazakhstani-tenge' => 'Tenge Kazakhstan (KZT)',
'kuwaiti-dinar' => 'Dinar Kuwait (KWD)',
'lebanese-pound' => 'Bảng Liban (LBP)',
'libyan-dinar' => 'Dinar Libya (LYD)',
'malaysian-ringgit' => 'Ringgit Malaysia (MYR)',
'mauritian-rupee' => 'Rupee Mauritius (MUR)',
'mexican-peso' => 'Peso Mexico (MXN)',
'moroccan-dirham' => 'Dirham Maroc (MAD)',
'mysql' => 'Mysql',
'nepalese-rupee' => 'Rupee Nepal (NPR)',
'new-taiwan-dollar' => 'Đô la Đài Loan mới (TWD)',
'new-zealand-dollar' => 'Đô la New Zealand (NZD)',
'nigerian-naira' => 'Naira Nigeria (NGN)',
'norwegian-krone' => 'Krone Na Uy (NOK)',
'omani-rial' => 'Rial Oman (OMR)',
'pakistani-rupee' => 'Rupee Pakistan (PKR)',
'panamanian-balboa' => 'Balboa Panama (PAB)',
'paraguayan-guarani' => 'Guarani Paraguay (PYG)',
'peruvian-nuevo-sol' => 'Nuevo Sol Peru (PEN)',
'pgsql' => 'pgSQL',
'philippine-peso' => 'Peso Philippines (PHP)',
'polish-zloty' => 'Zloty Ba Lan (PLN)',
'qatari-rial' => 'Rial Qatar (QAR)',
'romanian-leu' => 'Leu Romania (RON)',
'russian-ruble' => 'Ruble Nga (RUB)',
'saudi-riyal' => 'Riyal Ả Rập Saudi (SAR)',
'select-timezone' => 'Chọn múi giờ',
'singapore-dollar' => 'Đô la Singapore (SGD)',
'south-african-rand' => 'Rand Nam Phi (ZAR)',
'south-korean-won' => 'Won Hàn Quốc (KRW)',
'sqlsrv' => 'SQLSRV',
'sri-lankan-rupee' => 'Rupee Sri Lanka (LKR)',
'swedish-krona' => 'Krona Thụy Điển (SEK)',
'swiss-franc' => 'Franc Thụy Sĩ (CHF)',
'thai-baht' => 'Baht Thái Lan (THB)',
'title' => 'Cấu hình cửa hàng',
'tunisian-dinar' => 'Dinar Tunisia (TND)',
'turkish-lira' => 'Lira Thổ Nhĩ Kỳ (TRY)',
'ukrainian-hryvnia' => 'Hryvnia Ukraina (UAH)',
'united-arab-emirates-dirham' => 'Dirham Các Tiểu Vương Quốc Ả Rập Thống Nhất (AED)',
'united-states-dollar' => 'Đô la Mỹ (USD)',
'uzbekistani-som' => 'Som Uzbekistan (UZS)',
'venezuelan-bolívar' => 'Bolívar Venezuela (VEF)',
'vietnamese-dong' => 'Đồng Việt Nam (VND)',
'warning-message' => 'Cảnh báo! Các thiết lập cho ngôn ngữ hệ thống mặc định và tiền tệ mặc định là vĩnh viễn và không thể thay đổi sau khi đã thiết lập.',
'zambian-kwacha' => 'Kwacha Zambia (ZMW)',
],

'installation-processing' => [
'krayin' => 'Cài đặt Krayin',
'krayin-info' => 'Đang tạo bảng cơ sở dữ liệu, điều này có thể mất một chút thời gian',
'title' => 'Cài đặt',
],

'installation-completed' => [
'admin-panel' => 'Bảng điều khiển Quản trị',
'krayin-forums' => 'Diễn đàn Krayin',
'customer-panel' => 'Bảng điều khiển Khách hàng',
'explore-krayin-extensions' => 'Khám phá các tiện ích mở rộng Krayin',
'title' => 'Cài đặt đã hoàn tất',
'title-info' => 'Krayin đã được cài đặt thành công trên hệ thống của bạn.',
],

'ready-for-installation' => [
'create-databsae-table' => 'Tạo bảng cơ sở dữ liệu',
'install' => 'Cài đặt',
'install-info' => 'Krayin để cài đặt',
'install-info-button' => 'Nhấp vào nút bên dưới để',
'populate-database-table' => 'Điền dữ liệu cho bảng cơ sở dữ liệu',
'start-installation' => 'Bắt đầu cài đặt',
'title' => 'Sẵn sàng để cài đặt',
],

'start' => [
'locale' => 'Ngôn ngữ',
'main' => 'Bắt đầu',
'select-locale' => 'Chọn ngôn ngữ',
'title' => 'Cài đặt Krayin của bạn',
'welcome-title' => 'Chào mừng đến với Krayin',
],

'server-requirements' => [
'calendar' => 'Calendar',
'ctype' => 'cType',
'curl' => 'cURL',
'dom' => 'dom',
'fileinfo' => 'fileInfo',
'filter' => 'Filter',
'gd' => 'GD',
'hash' => 'Hash',
'intl' => 'intl',
'json' => 'JSON',
'mbstring' => 'mbstring',
'openssl' => 'openssl',
'pcre' => 'pcre',
'pdo' => 'pdo',
'php' => 'PHP',
'php-version' => '8.1 or higher',
'session' => 'session',
'title' => 'System Requirements',
'tokenizer' => 'tokenizer',
'xml' => 'XML',
],

'arabic' => 'Tiếng Ả Rập',
'back' => 'Quay lại',
'krayin' => 'Krayin',
'krayin-info' => 'một Dự án Cộng đồng của',
'krayin-logo' => 'Logo Krayin',
'bengali' => 'Tiếng Bengal',
'chinese' => 'Tiếng Trung',
'continue' => 'Tiếp tục',
'dutch' => 'Tiếng Hà Lan',
'english' => 'Tiếng Anh',
'french' => 'Tiếng Pháp',
'german' => 'Tiếng Đức',
'hebrew' => 'Tiếng Hebrew',
'hindi' => 'Tiếng Hindi',
'vietnamese' => 'Tiếng Việt',
'installation-description' => 'Việc cài đặt Krayin thường bao gồm một vài bước. Dưới đây là phác thảo tổng quan về quá trình cài đặt Krayin',
'installation-info' => 'Chúng tôi rất vui khi thấy bạn ở đây!',
'installation-title' => 'Chào mừng đến với Cài đặt',
'italian' => 'Tiếng Ý',
'japanese' => 'Tiếng Nhật',
'persian' => 'Tiếng Ba Tư',
'polish' => 'Tiếng Ba Lan',
'portuguese' => 'Tiếng Bồ Đào Nha Brazil',
'russian' => 'Tiếng Nga',
'sinhala' => 'Tiếng Sinhala',
'spanish' => 'Tiếng Tây Ban Nha',
'title' => 'Trình cài đặt Krayin',
'turkish' => 'Tiếng Thổ Nhĩ Kỳ',
'ukrainian' => 'Tiếng Ukraina',
'webkul' => 'Webkul',
],
],
];
20 changes: 20 additions & 0 deletions packages/Webkul/WebForm/src/Resources/lang/vi/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return [
'acl' => [
'title' => 'Biểu mẫu Web',
'view' => 'Xem',
'create' => 'Tạo',
'edit' => 'Chỉnh sửa',
'delete' => 'Xóa',
],

'menu' => [
'title' => 'Biểu mẫu Web',
'title-info' => 'Thêm, chỉnh sửa hoặc xóa biểu mẫu web từ CRM',
],

'validations' => [
'invalid-phone-number' => 'Số điện thoại không hợp lệ.',
],
];