Limited account search

This commit is contained in:
Hillel Coren 2016-04-10 15:44:45 +03:00
parent 769465542d
commit ec7fd5ff0c

View File

@ -275,6 +275,7 @@
@if (Auth::check() && Auth::user()->account->custom_client_label1) @if (Auth::check() && Auth::user()->account->custom_client_label1)
,{ ,{
name: 'data', name: 'data',
limit: 3,
display: 'value', display: 'value',
source: searchData(data['{{ Auth::user()->account->custom_client_label1 }}'], 'tokens'), source: searchData(data['{{ Auth::user()->account->custom_client_label1 }}'], 'tokens'),
templates: { templates: {
@ -285,6 +286,7 @@
@if (Auth::check() && Auth::user()->account->custom_client_label2) @if (Auth::check() && Auth::user()->account->custom_client_label2)
,{ ,{
name: 'data', name: 'data',
limit: 3,
display: 'value', display: 'value',
source: searchData(data['{{ Auth::user()->account->custom_client_label2 }}'], 'tokens'), source: searchData(data['{{ Auth::user()->account->custom_client_label2 }}'], 'tokens'),
templates: { templates: {
@ -295,6 +297,7 @@
@foreach (['clients', 'contacts', 'invoices', 'quotes', 'navigation'] as $type) @foreach (['clients', 'contacts', 'invoices', 'quotes', 'navigation'] as $type)
,{ ,{
name: 'data', name: 'data',
limit: 3,
display: 'value', display: 'value',
source: searchData(data['{{ $type }}'], 'tokens', true), source: searchData(data['{{ $type }}'], 'tokens', true),
templates: { templates: {