Merge pull request #2625 from jitendra-webkul/booking-product
Remove static text from grid
This commit is contained in:
commit
5859d8dfc2
|
|
@ -144,14 +144,14 @@ class AddressDataGrid extends DataGrid
|
|||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'type' => 'Edit',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.customer.addresses.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'type' => 'Delete',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.customer.addresses.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'address']),
|
||||
|
|
|
|||
|
|
@ -66,9 +66,9 @@ class AttributeDataGrid extends DataGrid
|
|||
'searchable' => false,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->is_required == 1) {
|
||||
return 'True';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'False';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -82,9 +82,9 @@ class AttributeDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->is_unique == 1) {
|
||||
return 'True';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'False';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -98,9 +98,9 @@ class AttributeDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->value_per_locale == 1) {
|
||||
return 'True';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'False';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -114,9 +114,9 @@ class AttributeDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->value_per_channel == 1) {
|
||||
return 'True';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'False';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -125,14 +125,14 @@ class AttributeDataGrid extends DataGrid
|
|||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Attribute',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.catalog.attributes.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Attribute',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.catalog.attributes.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -48,16 +48,17 @@ class AttributeFamilyDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Attribute Family',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.catalog.families.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Attribute Family',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.catalog.families.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -55,16 +55,17 @@ class CMSPageDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit CMSPage',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.cms.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete CMSPage',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.cms.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -102,14 +102,14 @@ class CartRuleDataGrid extends DataGrid
|
|||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Cart Rule',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.cart-rules.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Cart Rule',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.cart-rules.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -86,14 +86,14 @@ class CatalogRuleDataGrid extends DataGrid
|
|||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Catalog Rule',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.catalog-rules.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Catalog Rule',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.catalog-rules.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ class CategoryDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->status == 1) {
|
||||
return 'Active';
|
||||
return trans('admin::app.datagrid.active');
|
||||
} else {
|
||||
return 'Inactive';
|
||||
return trans('admin::app.datagrid.inactive');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -84,16 +84,17 @@ class CategoryDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Category',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.catalog.categories.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Category',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.catalog.categories.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'product']),
|
||||
|
|
|
|||
|
|
@ -57,16 +57,17 @@ class ChannelDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Channel',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.channels.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Channel',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.channels.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'product']),
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ class CartRuleCouponsDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->end_other_rules == 1) {
|
||||
return 'true';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'false';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -48,16 +48,17 @@ class CurrencyDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Currency',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.currencies.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Currency',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.currencies.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -118,7 +118,8 @@ class CustomerDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.customer.edit',
|
||||
|
|
|
|||
|
|
@ -48,16 +48,17 @@ class CustomerGroupDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Customer Group',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.groups.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Customer Group',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.groups.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -75,33 +75,35 @@ class CustomerReviewDataGrid extends DataGrid
|
|||
'closure' => true,
|
||||
'wrapper' => function ($value) {
|
||||
if ($value->product_review_status == 'approved') {
|
||||
return '<span class="badge badge-md badge-success">Approved</span>';
|
||||
return '<span class="badge badge-md badge-success">' . trans('admin::app.datagrid.approved') . '</span>';
|
||||
} elseif ($value->product_review_status == "pending") {
|
||||
return '<span class="badge badge-md badge-warning">Pending</span>';
|
||||
return '<span class="badge badge-md badge-warning">' . trans('admin::app.datagrid.pending') . '</span>';
|
||||
} elseif ($value->product_review_status == "disapproved") {
|
||||
return '<span class="badge badge-md badge-danger">Disapproved</span>';
|
||||
return '<span class="badge badge-md badge-danger">' . trans('admin::app.datagrid.disapproved') . '</span>';
|
||||
}
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Customer Review',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.customer.review.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Customer Review',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.customer.review.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
]);
|
||||
}
|
||||
|
||||
public function prepareMassActions() {
|
||||
public function prepareMassActions()
|
||||
{
|
||||
$this->addMassAction([
|
||||
'type' => 'delete',
|
||||
'label' => trans('admin::app.datagrid.delete'),
|
||||
|
|
|
|||
|
|
@ -52,16 +52,17 @@ class ExchangeRatesDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Exchange Rate',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.exchange_rates.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Exchange Rate',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.exchange_rates.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'Exchange Rate']),
|
||||
|
|
|
|||
|
|
@ -65,24 +65,25 @@ class InventorySourcesDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->status == 1) {
|
||||
return 'Active';
|
||||
return trans('admin::app.datagrid.active');
|
||||
} else {
|
||||
return 'Inactive';
|
||||
return trans('admin::app.datagrid.inactive');
|
||||
}
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Inventory Source',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.inventory_sources.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Inventory Source',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.inventory_sources.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'Exchange Rate']),
|
||||
|
|
|
|||
|
|
@ -65,16 +65,17 @@ class LocalesDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Locales',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.locales.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Locales',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.locales.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'Exchange Rate']),
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ class NewsLetterDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->is_subscribed == 1) {
|
||||
return 'True';
|
||||
return trans('admin::app.datagrid.true');
|
||||
} else {
|
||||
return 'False';
|
||||
return trans('admin::app.datagrid.false');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -55,16 +55,17 @@ class NewsLetterDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit News Letter',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.customers.subscribers.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete News Letter',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.customers.subscribers.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'Exchange Rate']),
|
||||
|
|
|
|||
|
|
@ -127,9 +127,10 @@ class OrderDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Order View',
|
||||
'title' => trans('admin::app.datagrid.view'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.sales.orders.view',
|
||||
'icon' => 'icon eye-icon',
|
||||
|
|
|
|||
|
|
@ -64,9 +64,10 @@ class OrderInvoicesDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Order Invoice View',
|
||||
'title' => trans('admin::app.datagrid.view'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.sales.invoices.view',
|
||||
'icon' => 'icon eye-icon',
|
||||
|
|
|
|||
|
|
@ -80,9 +80,10 @@ class OrderRefundDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Order Refund View',
|
||||
'title' => trans('admin::app.datagrid.view'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.sales.refunds.view',
|
||||
'icon' => 'icon eye-icon',
|
||||
|
|
|
|||
|
|
@ -101,9 +101,10 @@ class OrderShipmentsDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Order Shipment View',
|
||||
'title' => trans('admin::app.datagrid.view'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.sales.shipments.view',
|
||||
'icon' => 'icon eye-icon',
|
||||
|
|
|
|||
|
|
@ -121,9 +121,9 @@ class ProductDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->status == 1) {
|
||||
return 'Active';
|
||||
return trans('admin::app.datagrid.active');
|
||||
} else {
|
||||
return 'Inactive';
|
||||
return trans('admin::app.datagrid.inactive');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -154,9 +154,10 @@ class ProductDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Product',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.catalog.products.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
|
|
@ -166,7 +167,7 @@ class ProductDataGrid extends DataGrid
|
|||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Product',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.catalog.products.delete',
|
||||
'confirm_text' => trans('ui::app.datagrid.massaction.delete', ['resource' => 'product']),
|
||||
|
|
@ -174,7 +175,8 @@ class ProductDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareMassActions() {
|
||||
public function prepareMassActions()
|
||||
{
|
||||
$this->addMassAction([
|
||||
'type' => 'delete',
|
||||
'label' => trans('admin::app.datagrid.delete'),
|
||||
|
|
|
|||
|
|
@ -49,16 +49,17 @@ class RolesDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.roles.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.roles.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -53,16 +53,17 @@ class SliderDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Slider',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.sliders.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Slider',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.sliders.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -48,16 +48,17 @@ class TaxCategoryDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Tax Category',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.tax-categories.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Tax Category',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.tax-categories.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -100,16 +100,17 @@ class TaxRateDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit Tax Rate',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.tax-rates.store',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete Tax Rate',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.tax-rates.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ class UserDataGrid extends DataGrid
|
|||
'filterable' => true,
|
||||
'wrapper' => function($value) {
|
||||
if ($value->status == 1) {
|
||||
return 'Active';
|
||||
return trans('admin::app.datagrid.active');
|
||||
} else {
|
||||
return 'Inactive';
|
||||
return trans('admin::app.datagrid.inactive');
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
|
@ -79,16 +79,17 @@ class UserDataGrid extends DataGrid
|
|||
]);
|
||||
}
|
||||
|
||||
public function prepareActions() {
|
||||
public function prepareActions()
|
||||
{
|
||||
$this->addAction([
|
||||
'title' => 'Edit User',
|
||||
'title' => trans('admin::app.datagrid.edit'),
|
||||
'method' => 'GET',
|
||||
'route' => 'admin.users.edit',
|
||||
'icon' => 'icon pencil-lg-icon',
|
||||
]);
|
||||
|
||||
$this->addAction([
|
||||
'title' => 'Delete User',
|
||||
'title' => trans('admin::app.datagrid.delete'),
|
||||
'method' => 'POST',
|
||||
'route' => 'admin.users.delete',
|
||||
'icon' => 'icon trash-icon',
|
||||
|
|
|
|||
|
|
@ -150,7 +150,31 @@ return [
|
|||
'role' => 'الدور',
|
||||
'sub-total' => 'المجموع الفرعي',
|
||||
'no-of-products' => 'عدد المنتجات',
|
||||
'attribute-family' => 'Attribute Family',
|
||||
'starts-from' => 'Starts From',
|
||||
'ends-till' => 'Ends Till',
|
||||
'per-cust' => 'Per Customer',
|
||||
'usage-throttle' => 'Usage Times',
|
||||
'for-guest' => 'For Guest',
|
||||
'order_number' => 'Order Number',
|
||||
'refund-date' => 'Refund Date',
|
||||
'refunded' => 'Refunded',
|
||||
'start' => 'Start',
|
||||
'end' => 'End',
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'true' => 'True',
|
||||
'false' => 'False',
|
||||
'approved' => 'Approved',
|
||||
'pending' => 'Pending',
|
||||
'disapproved' => 'Disapproved',
|
||||
'coupon-code' => 'Coupon Code',
|
||||
'times-used' => 'Times Used',
|
||||
'created-date' => 'Created Date',
|
||||
'expiration-date' => 'Expiration Date',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'view' => 'View',
|
||||
'rtl' => 'RTL',
|
||||
'ltr' => 'LTR',
|
||||
'update-status' => 'Update Status'
|
||||
|
|
|
|||
|
|
@ -209,11 +209,18 @@ return [
|
|||
'end' => 'End',
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'true' => 'True',
|
||||
'false' => 'False',
|
||||
'approved' => 'Approved',
|
||||
'pending' => 'Pending',
|
||||
'disapproved' => 'Disapproved',
|
||||
'coupon-code' => 'Coupon Code',
|
||||
'times-used' => 'Times Used',
|
||||
'created-date' => 'Created Date',
|
||||
'expiration-date' => 'Expiration Date',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'view' => 'View',
|
||||
'rtl' => 'RTL',
|
||||
'ltr' => 'LTR',
|
||||
'update-status' => 'Update Status'
|
||||
|
|
|
|||
|
|
@ -156,18 +156,31 @@ return [
|
|||
'role' => 'نقش',
|
||||
'sub-total' => 'زیر مجموع',
|
||||
'no-of-products' => 'تعداد محصولات',
|
||||
'attribute-family' => 'ویژگی خانواده',
|
||||
'starts-from' => 'شروع می شود از',
|
||||
'ends-till' => 'پایان می یابد',
|
||||
'per-cust' => 'به ازای هر مشتری',
|
||||
'usage-throttle' => 'بار استفاده',
|
||||
'for-guest' => 'برای مهمان',
|
||||
'end_other_rules' => 'پایان قوانین دیگر',
|
||||
'action_type' => 'نوع عملیات',
|
||||
'disc_quantity' => 'مقدار استفاده نشده',
|
||||
'disc_threshold' => 'آستانه استفاده نشده',
|
||||
'use_coupon' => 'استافده از کوپن',
|
||||
'attribute-family' => 'Attribute Family',
|
||||
'starts-from' => 'Starts From',
|
||||
'ends-till' => 'Ends Till',
|
||||
'per-cust' => 'Per Customer',
|
||||
'usage-throttle' => 'Usage Times',
|
||||
'for-guest' => 'For Guest',
|
||||
'order_number' => 'Order Number',
|
||||
'refund-date' => 'Refund Date',
|
||||
'refunded' => 'Refunded',
|
||||
'start' => 'Start',
|
||||
'end' => 'End',
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'true' => 'True',
|
||||
'false' => 'False',
|
||||
'approved' => 'Approved',
|
||||
'pending' => 'Pending',
|
||||
'disapproved' => 'Disapproved',
|
||||
'coupon-code' => 'Coupon Code',
|
||||
'times-used' => 'Times Used',
|
||||
'created-date' => 'Created Date',
|
||||
'expiration-date' => 'Expiration Date',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'view' => 'View',
|
||||
'rtl' => 'RTL',
|
||||
'ltr' => 'LTR',
|
||||
'update-status' => 'Update Status'
|
||||
|
|
|
|||
|
|
@ -197,26 +197,33 @@ return [
|
|||
'sub-total' => 'Subtotaal',
|
||||
'no-of-products' => 'Aantal producten',
|
||||
'attribute-family' => 'Attribute Family',
|
||||
'starts-from' => 'Van',
|
||||
'ends-till' => 'Tot',
|
||||
'per-cust' => 'Per klant',
|
||||
'starts-from' => 'Starts From',
|
||||
'ends-till' => 'Ends Till',
|
||||
'per-cust' => 'Per Customer',
|
||||
'usage-throttle' => 'Usage Times',
|
||||
'for-guest' => 'Voor gast',
|
||||
'order_number' => 'Bestelnummer ',
|
||||
'for-guest' => 'For Guest',
|
||||
'order_number' => 'Order Number',
|
||||
'refund-date' => 'Refund Date',
|
||||
'refunded' => 'Teruggestort',
|
||||
'refunded' => 'Refunded',
|
||||
'start' => 'Start',
|
||||
'end' => 'Einde',
|
||||
'active' => 'Actief',
|
||||
'inactive' => 'Inactief',
|
||||
'end' => 'End',
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'true' => 'True',
|
||||
'false' => 'False',
|
||||
'approved' => 'Approved',
|
||||
'pending' => 'Pending',
|
||||
'disapproved' => 'Disapproved',
|
||||
'coupon-code' => 'Coupon Code',
|
||||
'times-used' => 'Keer gebruikt',
|
||||
'times-used' => 'Times Used',
|
||||
'created-date' => 'Created Date',
|
||||
'expiration-date' => 'Vervaldatum',
|
||||
'delete' => 'Verwijder',
|
||||
'expiration-date' => 'Expiration Date',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'view' => 'View',
|
||||
'rtl' => 'RTL',
|
||||
'ltr' => 'LTR',
|
||||
'update-status' => 'Status bijwerken'
|
||||
'update-status' => 'Update Status'
|
||||
],
|
||||
|
||||
'account' => [
|
||||
|
|
|
|||
|
|
@ -155,7 +155,25 @@ return [
|
|||
'per-cust' => 'Por cliente',
|
||||
'usage-throttle' => 'Tempos de uso',
|
||||
'for-guest' => 'Para convidados',
|
||||
'order_number' => 'Order Number',
|
||||
'refund-date' => 'Refund Date',
|
||||
'refunded' => 'Refunded',
|
||||
'start' => 'Start',
|
||||
'end' => 'End',
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'true' => 'True',
|
||||
'false' => 'False',
|
||||
'approved' => 'Approved',
|
||||
'pending' => 'Pending',
|
||||
'disapproved' => 'Disapproved',
|
||||
'coupon-code' => 'Coupon Code',
|
||||
'times-used' => 'Times Used',
|
||||
'created-date' => 'Created Date',
|
||||
'expiration-date' => 'Expiration Date',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'view' => 'View',
|
||||
'rtl' => 'RTL',
|
||||
'ltr' => 'LTR',
|
||||
'update-status' => 'Update Status'
|
||||
|
|
|
|||
Loading…
Reference in New Issue