@@ -28,7 +28,7 @@ class RestaurantApiServices
|
||||
public function getCoordinates($customerIamId)
|
||||
{
|
||||
try {
|
||||
$perPage = request()->get('per_page', 10000);
|
||||
// $perPage = request()->get('per_page', 10000);
|
||||
|
||||
$restaurants = ManageRestaurant::with('closedRestaurant')
|
||||
->select(
|
||||
@@ -40,18 +40,7 @@ class RestaurantApiServices
|
||||
'latitude',
|
||||
'longtitude'
|
||||
)
|
||||
->where('is_active', '1')
|
||||
->paginate($perPage);
|
||||
|
||||
// foreach ($restaurants as &$restaurant) {
|
||||
// $restaurant['image'] = ListingImageUrl('restaurant_images', $restaurant['image']);
|
||||
|
||||
// $isFavourite = CustomerFavouriteRestaurant::where('principal_xid', $customerIamId)
|
||||
// ->where('restaurant_xid', $restaurant['id'])
|
||||
// ->exists();
|
||||
// $restaurant['is_favourite'] = $isFavourite;
|
||||
// $restaurant['operating_hours'] = getOpeningHoursOfRestaurant($restaurant['name']); // Will update later
|
||||
// }
|
||||
->where('is_active', '1')->get();
|
||||
|
||||
$client = new Client();
|
||||
$promises = [];
|
||||
|
||||
Reference in New Issue
Block a user