diff --git a/packages/Webkul/Admin/src/Config/acl.php b/packages/Webkul/Admin/src/Config/acl.php index c5e246bab..45720bb02 100644 --- a/packages/Webkul/Admin/src/Config/acl.php +++ b/packages/Webkul/Admin/src/Config/acl.php @@ -151,11 +151,6 @@ 'name' => 'admin::app.acl.delete', 'route' => ['admin.contacts.persons.delete', 'admin.contacts.persons.mass_delete'], 'sort' => 4, - ], [ - 'key' => 'contacts.persons.export', - 'name' => 'admin::app.acl.export', - 'route' => 'ui.datagrid.export', - 'sort' => 4, ], [ 'key' => 'contacts.persons.view', 'name' => 'admin::app.acl.view', diff --git a/packages/Webkul/Admin/src/Http/Controllers/Contact/Persons/PersonController.php b/packages/Webkul/Admin/src/Http/Controllers/Contact/Persons/PersonController.php index b1b9a2dd9..623fa4a85 100644 --- a/packages/Webkul/Admin/src/Http/Controllers/Contact/Persons/PersonController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Contact/Persons/PersonController.php @@ -30,7 +30,7 @@ public function __construct(protected PersonRepository $personRepository) /** * Display a listing of the resource. */ - public function index(): View|JsonResponse + public function index() { if (request()->ajax()) { return datagrid(PersonDataGrid::class)->process(); diff --git a/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php b/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php index 3e34a136d..5d1e2dc24 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Lead/LeadController.php @@ -51,7 +51,7 @@ public function __construct( /** * Display a listing of the resource. */ - public function index(): View|JsonResponse + public function index() { if (request()->ajax()) { return datagrid(LeadDataGrid::class)->process(); diff --git a/packages/Webkul/Admin/src/Resources/lang/ar/app.php b/packages/Webkul/Admin/src/Resources/lang/ar/app.php index cec6f2d7a..12051196f 100644 --- a/packages/Webkul/Admin/src/Resources/lang/ar/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/ar/app.php @@ -2083,4 +2083,13 @@ 'title' => '503 الخدمة غير متوفرة', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'تحميل', + 'export' => 'تصدير', + 'no-records' => 'لا توجد سجلات للتصدير', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index df6a1e9e6..f0559f2ff 100644 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -2087,4 +2087,13 @@ 'title' => '503 Service Unavailable', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'Download', + 'export' => 'Export', + 'no-records' => 'Nothing to export', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/es/app.php b/packages/Webkul/Admin/src/Resources/lang/es/app.php index c74ed3b45..7bda4b405 100644 --- a/packages/Webkul/Admin/src/Resources/lang/es/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/es/app.php @@ -2086,4 +2086,13 @@ 'title' => '503 Servicio No Disponible', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'Descargar', + 'export' => 'Exportar', + 'no-records' => 'No se encontraron registros.', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/fa/app.php b/packages/Webkul/Admin/src/Resources/lang/fa/app.php index b92ef8753..92cddee1b 100644 --- a/packages/Webkul/Admin/src/Resources/lang/fa/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/fa/app.php @@ -2087,4 +2087,13 @@ 'title' => '503 سرویس در دسترس نیست', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'دانلود', + 'export' => 'صادر کردن', + 'no-records' => 'هیچ سوابقی برای صادر کردن وجود ندارد.', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php b/packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php index ab17e25db..bdba248b0 100644 --- a/packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php @@ -2051,4 +2051,13 @@ 'errors' => [ '401' => 'Você não tem autorização para acessar esta página', ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'Download', + 'export' => 'Exportar', + 'no-records' => 'Nenhum registro encontrado.', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/tr/app.php b/packages/Webkul/Admin/src/Resources/lang/tr/app.php index 345c512e4..22746fa0b 100644 --- a/packages/Webkul/Admin/src/Resources/lang/tr/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/tr/app.php @@ -2087,4 +2087,13 @@ 'title' => '503 Hizmet Kullanılamıyor', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'İndir', + 'export' => 'Dışa Aktar', + 'no-records' => 'Dışa aktarılacak kayıt bulunamadı.', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/lang/vi/app.php b/packages/Webkul/Admin/src/Resources/lang/vi/app.php index 73f221ca7..1ecc2be0d 100644 --- a/packages/Webkul/Admin/src/Resources/lang/vi/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/vi/app.php @@ -2086,4 +2086,13 @@ 'title' => '503 Dịch Vụ Không Khả Dụng', ], ], + + 'export' => [ + 'csv' => 'CSV', + 'download' => 'Tải Xuống', + 'export' => 'Xuất', + 'no-records' => 'Không có bản ghi nào được tìm thấy.', + 'xls' => 'XLS', + 'xlsx' => 'XLSX', + ], ]; diff --git a/packages/Webkul/Admin/src/Resources/views/contacts/persons/index.blade.php b/packages/Webkul/Admin/src/Resources/views/contacts/persons/index.blade.php index 14b0765b8..7a52651d4 100644 --- a/packages/Webkul/Admin/src/Resources/views/contacts/persons/index.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/contacts/persons/index.blade.php @@ -16,6 +16,9 @@
+ + +
{!! view_render_event('admin.persons.index.create_button.before') !!} @@ -44,8 +47,8 @@ class="primary-button" {!! view_render_event('admin.persons.index.datagrid.after') !!}
- @pushOnce('scripts') -