diff --git a/app/Filters/Expenses/Bills.php b/app/Filters/Expenses/Bills.php
index 7bbfcc422..7055a1ef7 100644
--- a/app/Filters/Expenses/Bills.php
+++ b/app/Filters/Expenses/Bills.php
@@ -19,6 +19,11 @@ class Bills extends ModelFilter
return $this->whereLike('vendor_name', $query);
}
+ public function vendor($vendor)
+ {
+ return $this->where('vendor_id', $vendor);
+ }
+
public function status($status)
{
return $this->where('bill_status_code', $status);
diff --git a/app/Filters/Expenses/Payments.php b/app/Filters/Expenses/Payments.php
index e9ae561c8..a9345d428 100644
--- a/app/Filters/Expenses/Payments.php
+++ b/app/Filters/Expenses/Payments.php
@@ -19,6 +19,11 @@ class Payments extends ModelFilter
return $this->whereLike('description', $query);
}
+ public function vendor($vendor)
+ {
+ return $this->where('vendor_id', $vendor);
+ }
+
public function category($category)
{
return $this->where('category_id', $category);
diff --git a/app/Filters/Incomes/Invoices.php b/app/Filters/Incomes/Invoices.php
index c561765dd..79e3ef639 100644
--- a/app/Filters/Incomes/Invoices.php
+++ b/app/Filters/Incomes/Invoices.php
@@ -19,6 +19,11 @@ class Invoices extends ModelFilter
return $this->whereLike('customer_name', $query);
}
+ public function customer($customer)
+ {
+ return $this->where('customer_id', $customer);
+ }
+
public function status($status)
{
return $this->where('invoice_status_code', $status);
diff --git a/app/Filters/Incomes/Revenues.php b/app/Filters/Incomes/Revenues.php
index b80881560..f61bcfa35 100644
--- a/app/Filters/Incomes/Revenues.php
+++ b/app/Filters/Incomes/Revenues.php
@@ -14,6 +14,11 @@ class Revenues extends ModelFilter
*/
public $relations = [];
+ public function search($query)
+ {
+ return $this->whereLike('description', $query);
+ }
+
public function customer($customer)
{
return $this->where('customer_id', $customer);
diff --git a/app/Http/Controllers/Auth/Users.php b/app/Http/Controllers/Auth/Users.php
index 8c7de8b02..4800ebcbd 100644
--- a/app/Http/Controllers/Auth/Users.php
+++ b/app/Http/Controllers/Auth/Users.php
@@ -21,7 +21,7 @@ class Users extends Controller
$users = User::with('roles')->collect();
$roles = collect(Role::all()->pluck('display_name', 'id'))
- ->prepend(trans('roles.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.roles', 2)]), '');
return view('auth.users.index', compact('users', 'roles'));
}
diff --git a/app/Http/Controllers/Banking/Transfers.php b/app/Http/Controllers/Banking/Transfers.php
index aaf366f20..ca8617150 100644
--- a/app/Http/Controllers/Banking/Transfers.php
+++ b/app/Http/Controllers/Banking/Transfers.php
@@ -27,7 +27,7 @@ class Transfers extends Controller
$items = Transfer::with(['payment', 'revenue', 'account'])->collect('payment.paid_at');
$accounts = collect(Account::enabled()->pluck('name', 'id'))
- ->prepend(trans('accounts.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.accounts', 2)]), '');
$transfers = array();
diff --git a/app/Http/Controllers/Customers/Invoices.php b/app/Http/Controllers/Customers/Invoices.php
index dd68fe010..683cb257b 100644
--- a/app/Http/Controllers/Customers/Invoices.php
+++ b/app/Http/Controllers/Customers/Invoices.php
@@ -46,7 +46,7 @@ class Invoices extends Controller
}
$status = collect(InvoiceStatus::all()->pluck('name', 'code'))
- ->prepend(trans('general.all_statuses'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.statuses', 2)]), '');
return view('customers.invoices.index', compact('invoices', 'status'));
}
diff --git a/app/Http/Controllers/Customers/Payments.php b/app/Http/Controllers/Customers/Payments.php
index 064dcac30..6feabec74 100644
--- a/app/Http/Controllers/Customers/Payments.php
+++ b/app/Http/Controllers/Customers/Payments.php
@@ -27,10 +27,10 @@ class Payments extends Controller
$payment_methods = Modules::getPaymentMethods();
$categories = collect(Category::enabled()->type('income')->pluck('name', 'id'))
- ->prepend(trans('categories.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
$accounts = collect(Account::enabled()->pluck('name', 'id'))
- ->prepend(trans('accounts.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.accounts', 2)]), '');
return view('customers.payments.index', compact('payments', 'payment_methods', 'categories', 'accounts'));
}
diff --git a/app/Http/Controllers/Expenses/Bills.php b/app/Http/Controllers/Expenses/Bills.php
index 412189299..b7ffff7a5 100644
--- a/app/Http/Controllers/Expenses/Bills.php
+++ b/app/Http/Controllers/Expenses/Bills.php
@@ -38,10 +38,13 @@ class Bills extends Controller
{
$bills = Bill::with('status')->collect();
- $status = collect(BillStatus::all()->pluck('name', 'code'))
- ->prepend(trans('general.all_statuses'), '');
+ $vendors = collect(Vendor::enabled()->pluck('name', 'id'))
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.vendors', 2)]), '');
- return view('expenses.bills.index', compact('bills', 'status'));
+ $status = collect(BillStatus::all()->pluck('name', 'code'))
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.statuses', 2)]), '');
+
+ return view('expenses.bills.index', compact('bills', 'vendors', 'status'));
}
/**
diff --git a/app/Http/Controllers/Expenses/Payments.php b/app/Http/Controllers/Expenses/Payments.php
index b5c57c454..c0497c6cf 100644
--- a/app/Http/Controllers/Expenses/Payments.php
+++ b/app/Http/Controllers/Expenses/Payments.php
@@ -24,13 +24,16 @@ class Payments extends Controller
{
$payments = Payment::with(['account', 'category'])->collect();
+ $vendors = collect(Vendor::enabled()->pluck('name', 'id'))
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.vendors', 2)]), '');
+
$categories = collect(Category::enabled()->type('expense')->pluck('name', 'id'))
- ->prepend(trans('categories.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
$accounts = collect(Account::enabled()->pluck('name', 'id'))
- ->prepend(trans('accounts.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.accounts', 2)]), '');
- return view('expenses.payments.index', compact('payments', 'categories', 'accounts'));
+ return view('expenses.payments.index', compact('payments', 'vendors', 'categories', 'accounts'));
}
/**
diff --git a/app/Http/Controllers/Incomes/Invoices.php b/app/Http/Controllers/Incomes/Invoices.php
index f64f1c1ad..7698d63b4 100644
--- a/app/Http/Controllers/Incomes/Invoices.php
+++ b/app/Http/Controllers/Incomes/Invoices.php
@@ -40,10 +40,13 @@ class Invoices extends Controller
{
$invoices = Invoice::with('status')->collect();
- $status = collect(InvoiceStatus::all()->pluck('name', 'code'))
- ->prepend(trans('general.all_statuses'), '');
+ $customers = collect(Customer::enabled()->pluck('name', 'id'))
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.customers', 2)]), '');
- return view('incomes.invoices.index', compact('invoices', 'status'));
+ $status = collect(InvoiceStatus::all()->pluck('name', 'code'))
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.statuses', 2)]), '');
+
+ return view('incomes.invoices.index', compact('invoices', 'customers', 'status'));
}
/**
diff --git a/app/Http/Controllers/Incomes/Revenues.php b/app/Http/Controllers/Incomes/Revenues.php
index 441a6465b..63f12770a 100644
--- a/app/Http/Controllers/Incomes/Revenues.php
+++ b/app/Http/Controllers/Incomes/Revenues.php
@@ -28,13 +28,13 @@ class Revenues extends Controller
$revenues = Revenue::with(['account', 'category', 'customer'])->collect();
$customers = collect(Customer::enabled()->pluck('name', 'id'))
- ->prepend(trans('customer.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.customers', 2)]), '');
$categories = collect(Category::enabled()->type('income')->pluck('name', 'id'))
- ->prepend(trans('categories.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
$accounts = collect(Account::enabled()->pluck('name', 'id'))
- ->prepend(trans('accounts.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.accounts', 2)]), '');
return view('incomes.revenues.index', compact('revenues', 'customers', 'categories', 'accounts'));
}
diff --git a/app/Http/Controllers/Items/Items.php b/app/Http/Controllers/Items/Items.php
index be67b94bd..3d8eef2b3 100644
--- a/app/Http/Controllers/Items/Items.php
+++ b/app/Http/Controllers/Items/Items.php
@@ -23,7 +23,8 @@ class Items extends Controller
{
$items = Item::with('category')->collect();
- $categories = Category::enabled()->type('item')->pluck('name', 'id')->prepend(trans('categories.all'), '');
+ $categories = Category::enabled()->type('item')->pluck('name', 'id')
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
return view('items.items.index', compact('items', 'categories'));
}
diff --git a/app/Http/Controllers/Settings/Categories.php b/app/Http/Controllers/Settings/Categories.php
index 904256763..d0a428b2a 100644
--- a/app/Http/Controllers/Settings/Categories.php
+++ b/app/Http/Controllers/Settings/Categories.php
@@ -19,7 +19,7 @@ class Categories extends Controller
$categories = Category::collect();
$types = collect(['expense' => 'Expense', 'income' => 'Income', 'item' => 'Item', 'other' => 'Other'])
- ->prepend(trans('categories.all_types'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.types', 2)]), '');
return view('settings.categories.index', compact('categories', 'types'));
}
diff --git a/app/Http/ViewComposers/Modules.php b/app/Http/ViewComposers/Modules.php
index cb68c5f25..def452fd2 100644
--- a/app/Http/ViewComposers/Modules.php
+++ b/app/Http/ViewComposers/Modules.php
@@ -23,7 +23,7 @@ class Modules
if (setting('general.api_token')) {
$categories = Cache::remember('modules.categories', Date::now()->addHour(6), function () {
return collect($this->getCategories())->pluck('name', 'slug')
- ->prepend(trans('categories.all'), '');
+ ->prepend(trans('general.all_type', ['type' => trans_choice('general.categories', 2)]), '');
});
$view->with(['categories' => $categories]);
diff --git a/resources/lang/en-GB/accounts.php b/resources/lang/en-GB/accounts.php
index ae2abe99c..98b9c65a4 100644
--- a/resources/lang/en-GB/accounts.php
+++ b/resources/lang/en-GB/accounts.php
@@ -10,6 +10,5 @@ return [
'bank_phone' => 'Bank Phone',
'bank_address' => 'Bank Address',
'default_account' => 'Default Account',
- 'all' => 'All Accounts',
];
diff --git a/resources/lang/en-GB/categories.php b/resources/lang/en-GB/categories.php
deleted file mode 100644
index 3f0adb977..000000000
--- a/resources/lang/en-GB/categories.php
+++ /dev/null
@@ -1,7 +0,0 @@
- 'All Categories',
- 'all_types' => 'All Types'
-];
diff --git a/resources/lang/en-GB/general.php b/resources/lang/en-GB/general.php
index 6759e3e2c..2c22adf02 100644
--- a/resources/lang/en-GB/general.php
+++ b/resources/lang/en-GB/general.php
@@ -35,6 +35,7 @@ return [
'languages' => 'Language|Languages',
'updates' => 'Update|Updates',
'numbers' => 'Number|Numbers',
+ 'statuses' => 'Status|Statuses',
'dashboard' => 'Dashboard',
'banking' => 'Banking',
@@ -76,7 +77,6 @@ return [
'color' => 'Colour',
'save' => 'Save',
'cancel' => 'Cancel',
- 'status' => 'Status',
'from' => 'From',
'to' => 'To',
'print' => 'Print',
@@ -85,12 +85,12 @@ return [
'filter' => 'Filter',
'create_user' => 'Create User',
'created_user' => 'Created User',
- 'all_statuses' => 'All Statuses',
'bank' => 'Bank Transfer',
'cash' => 'Cash',
'paypal' => 'PayPal',
'help' => 'Help',
'all' => 'All',
+ 'all_type' => 'All :type',
'upcoming' => 'Upcoming',
'created' => 'Created',
diff --git a/resources/lang/en-GB/roles.php b/resources/lang/en-GB/roles.php
deleted file mode 100644
index d0ebb3548..000000000
--- a/resources/lang/en-GB/roles.php
+++ /dev/null
@@ -1,7 +0,0 @@
- 'All Roles',
-
-];
diff --git a/resources/views/banking/accounts/index.blade.php b/resources/views/banking/accounts/index.blade.php
index 69061802e..4abf82039 100644
--- a/resources/views/banking/accounts/index.blade.php
+++ b/resources/views/banking/accounts/index.blade.php
@@ -34,7 +34,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('number', trans('accounts.number')) |
@sortablelink('opening_balance', trans('accounts.current_balance')) |
- @sortablelink('enabled', trans('general.status')) |
+ @sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/customers/dashboard/index.blade.php b/resources/views/customers/dashboard/index.blade.php
index e4e9b6c43..677120ab2 100644
--- a/resources/views/customers/dashboard/index.blade.php
+++ b/resources/views/customers/dashboard/index.blade.php
@@ -24,7 +24,7 @@
{{ trans('invoices.invoice_number') }} |
{{ trans_choice('general.customers', 1) }} |
{{ trans('invoices.total_price') }} |
- {{ trans('general.status') }} |
+ {{ trans_choice('general.statuses', 1) }} |
{{ trans('invoices.invoice_date') }} |
{{ trans('general.actions') }} |
diff --git a/resources/views/customers/invoices/index.blade.php b/resources/views/customers/invoices/index.blade.php
index 4df5dc81f..eee259836 100644
--- a/resources/views/customers/invoices/index.blade.php
+++ b/resources/views/customers/invoices/index.blade.php
@@ -16,7 +16,7 @@
{{ trans('general.search') }}:
{!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
- {!! Form::select('status', $status, request('status'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('status.all')]) !!}
+ {!! Form::select('status', $status, request('status'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::button(' ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
@@ -34,7 +34,7 @@
@sortablelink('invoice_number', trans('invoices.invoice_number')) |
@sortablelink('customer_name', trans_choice('general.customers', 1)) |
@sortablelink('amount', trans('invoices.total_price')) |
-
@sortablelink('status.name', trans('general.status')) |
+
@sortablelink('status.name', trans_choice('general.statuses', 1)) |
@sortablelink('invoiced_at', trans('invoices.invoice_date')) |
@sortablelink('due_at', trans('invoices.due_date')) |
{{ trans('general.actions') }} |
diff --git a/resources/views/customers/invoices/show.blade.php b/resources/views/customers/invoices/show.blade.php
index 1630daa9f..e4b5fc52d 100644
--- a/resources/views/customers/invoices/show.blade.php
+++ b/resources/views/customers/invoices/show.blade.php
@@ -176,7 +176,7 @@
{{ trans('general.date') }} |
- {{ trans('general.status') }} |
+ {{ trans_choice('general.statuses', 1) }} |
{{ trans('general.description') }} |
diff --git a/resources/views/customers/payments/index.blade.php b/resources/views/customers/payments/index.blade.php
index d7fee8ef9..e7be75f8a 100644
--- a/resources/views/customers/payments/index.blade.php
+++ b/resources/views/customers/payments/index.blade.php
@@ -16,8 +16,8 @@
{{ trans('general.search') }}:
{!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
- {!! Form::select('category_id', $categories, request('category_id'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('categories.all')]) !!}
- {!! Form::select('payment_method', $payment_methods, request('payment_method'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans_choice('general.payment_methods', 2)]) !!}
+ {!! Form::select('category_id', $categories, request('category_id'), ['class' => 'form-control input-filter input-sm']) !!}
+ {!! Form::select('payment_method', $payment_methods, request('payment_method'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::button(' ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
diff --git a/resources/views/expenses/bills/index.blade.php b/resources/views/expenses/bills/index.blade.php
index 5f5143bc9..a0183f6d3 100644
--- a/resources/views/expenses/bills/index.blade.php
+++ b/resources/views/expenses/bills/index.blade.php
@@ -16,6 +16,7 @@
{{ trans('general.search') }}:
{!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
+ {!! Form::select('vendor', $vendors, request('vendor'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('status', $status, request('status'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::button(' ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
@@ -35,7 +36,7 @@
@sortablelink('bill_number', trans_choice('general.numbers', 1)) |
@sortablelink('vendor_name', trans_choice('general.vendors', 1)) |
@sortablelink('amount', trans('general.amount')) |
-
@sortablelink('status.name', trans('general.status')) |
+
@sortablelink('status.name', trans_choice('general.statuses', 1)) |
@sortablelink('billed_at', trans('bills.bill_date')) |
@sortablelink('due_at', trans('bills.due_date')) |
{{ trans('general.actions') }} |
diff --git a/resources/views/expenses/bills/show.blade.php b/resources/views/expenses/bills/show.blade.php
index aa98ad631..3de375ba2 100644
--- a/resources/views/expenses/bills/show.blade.php
+++ b/resources/views/expenses/bills/show.blade.php
@@ -176,7 +176,7 @@
{{ trans('general.date') }} |
- {{ trans('general.status') }} |
+ {{ trans_choice('general.statuses', 1) }} |
{{ trans('general.description') }} |
diff --git a/resources/views/expenses/payments/index.blade.php b/resources/views/expenses/payments/index.blade.php
index bf73c2312..09899fbdc 100644
--- a/resources/views/expenses/payments/index.blade.php
+++ b/resources/views/expenses/payments/index.blade.php
@@ -16,6 +16,7 @@
{{ trans('general.search') }}:
{!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
+ {!! Form::select('vendor', $vendors, request('vendor'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('category', $categories, request('category'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('account', $accounts, request('account'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::button('
' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
diff --git a/resources/views/expenses/vendors/index.blade.php b/resources/views/expenses/vendors/index.blade.php
index 2acf29be9..8b2ec3bb3 100644
--- a/resources/views/expenses/vendors/index.blade.php
+++ b/resources/views/expenses/vendors/index.blade.php
@@ -34,7 +34,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('email', trans('general.email')) |
@sortablelink('phone', trans('general.phone')) |
-
@sortablelink('enabled', trans('general.status')) |
+
@sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/incomes/customers/index.blade.php b/resources/views/incomes/customers/index.blade.php
index aedf8cef7..829287fe6 100644
--- a/resources/views/incomes/customers/index.blade.php
+++ b/resources/views/incomes/customers/index.blade.php
@@ -34,7 +34,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('email', trans('general.email')) |
@sortablelink('phone', trans('general.phone')) |
-
@sortablelink('enabled', trans('general.status')) |
+
@sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/incomes/invoices/index.blade.php b/resources/views/incomes/invoices/index.blade.php
index 6657111e4..143e51fd9 100644
--- a/resources/views/incomes/invoices/index.blade.php
+++ b/resources/views/incomes/invoices/index.blade.php
@@ -16,6 +16,7 @@
{{ trans('general.search') }}:
{!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
+ {!! Form::select('customer', $customers, request('customer'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('status', $status, request('status'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::button(' ' . trans('general.filter'), ['type' => 'submit', 'class' => 'btn btn-sm btn-default btn-filter']) !!}
@@ -34,7 +35,7 @@
@sortablelink('invoice_number', trans_choice('general.numbers', 1)) |
@sortablelink('customer_name', trans_choice('general.customers', 1)) |
@sortablelink('amount', trans('general.amount')) |
-
@sortablelink('status.name', trans('general.status')) |
+
@sortablelink('status.name', trans_choice('general.statuses', 1)) |
@sortablelink('invoiced_at', trans('invoices.invoice_date')) |
@sortablelink('due_at', trans('invoices.due_date')) |
{{ trans('general.actions') }} |
diff --git a/resources/views/incomes/invoices/show.blade.php b/resources/views/incomes/invoices/show.blade.php
index e7a816691..fe4fad45c 100644
--- a/resources/views/incomes/invoices/show.blade.php
+++ b/resources/views/incomes/invoices/show.blade.php
@@ -179,7 +179,7 @@
{{ trans('general.date') }} |
- {{ trans('general.status') }} |
+ {{ trans_choice('general.statuses', 1) }} |
{{ trans('general.description') }} |
diff --git a/resources/views/incomes/revenues/index.blade.php b/resources/views/incomes/revenues/index.blade.php
index 0ba7d573d..0b661241b 100644
--- a/resources/views/incomes/revenues/index.blade.php
+++ b/resources/views/incomes/revenues/index.blade.php
@@ -15,6 +15,7 @@
{!! Form::open(['url' => 'incomes/revenues', 'role' => 'form', 'method' => 'GET']) !!}
{{ trans('general.search') }}:
+ {!! Form::text('search', request('search'), ['class' => 'form-control input-filter input-sm', 'placeholder' => trans('general.search_placeholder')]) !!}
{!! Form::select('customer', $customers, request('customer'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('category', $categories, request('category'), ['class' => 'form-control input-filter input-sm']) !!}
{!! Form::select('account', $accounts, request('account'), ['class' => 'form-control input-filter input-sm']) !!}
diff --git a/resources/views/items/items/index.blade.php b/resources/views/items/items/index.blade.php
index a81baea35..16bd6eee7 100644
--- a/resources/views/items/items/index.blade.php
+++ b/resources/views/items/items/index.blade.php
@@ -38,7 +38,7 @@
@sortablelink('quantity', trans_choice('items.quantities', 1)) |
@sortablelink('sale_price', trans('items.sales_price')) |
@sortablelink('purchase_price', trans('items.purchase_price')) |
- @sortablelink('enabled', trans('general.status')) |
+ @sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/settings/categories/index.blade.php b/resources/views/settings/categories/index.blade.php
index bc076c6e7..3c4975471 100644
--- a/resources/views/settings/categories/index.blade.php
+++ b/resources/views/settings/categories/index.blade.php
@@ -35,7 +35,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('type', trans_choice('general.types', 1)) |
{{ trans('general.color') }} |
- @sortablelink('enabled', trans('general.status')) |
+ @sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/settings/currencies/index.blade.php b/resources/views/settings/currencies/index.blade.php
index 7289c70ee..46c63e585 100644
--- a/resources/views/settings/currencies/index.blade.php
+++ b/resources/views/settings/currencies/index.blade.php
@@ -32,7 +32,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('code', trans('currencies.code')) |
@sortablelink('rate', trans('currencies.rate')) |
- @sortablelink('enabled', trans('general.status')) |
+ @sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |
diff --git a/resources/views/settings/taxes/index.blade.php b/resources/views/settings/taxes/index.blade.php
index ea0713dbb..bc53e1cbf 100644
--- a/resources/views/settings/taxes/index.blade.php
+++ b/resources/views/settings/taxes/index.blade.php
@@ -34,7 +34,7 @@
@sortablelink('name', trans('general.name')) |
@sortablelink('rate', trans('taxes.rate_percent')) |
- @sortablelink('enabled', trans('general.status')) |
+ @sortablelink('enabled', trans_choice('general.statuses', 1)) |
{{ trans('general.actions') }} |