Added more ajax select2 boxes to checkouts, remove helper ->with() methods

This commit is contained in:
snipe
2017-10-26 03:43:28 -07:00
parent 82690e1fd7
commit ea07517ad5
15 changed files with 84 additions and 116 deletions
@@ -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' =>