Added more ajax select2 boxes to checkouts, remove helper ->with() methods
This commit is contained in:
@@ -303,6 +303,9 @@ class AssetsController extends Controller
|
||||
'image' => ($asset->getImageUrl()) ? $asset->getImageUrl() : null,
|
||||
];
|
||||
}
|
||||
|
||||
array_unshift($assets_array, ['id'=> '', 'text'=> trans('general.select_asset'), 'image' => null]);
|
||||
|
||||
$results = [
|
||||
'items' => $assets_array,
|
||||
'pagination' =>
|
||||
|
||||
@@ -175,6 +175,9 @@ class LocationsController extends Controller
|
||||
'image' => ($location->image) ? url('/').'/uploads/locations/'.$location->image : null,
|
||||
];
|
||||
}
|
||||
|
||||
array_unshift($locations_array, ['id'=> '', 'text'=> trans('general.select_location'), 'image' => null]);
|
||||
|
||||
$results = [
|
||||
'items' => $locations_array,
|
||||
'pagination' =>
|
||||
|
||||
@@ -165,6 +165,8 @@ class UsersController extends Controller
|
||||
'image' => ($user->present()->gravatar) ? $user->present()->gravatar : null,
|
||||
];
|
||||
}
|
||||
|
||||
array_unshift($users_array, ['id'=> '', 'text'=> trans('general.select_user'), 'image' => null]);
|
||||
$results = [
|
||||
'items' => $users_array,
|
||||
'pagination' =>
|
||||
|
||||
Reference in New Issue
Block a user