InteractsWithMedia.php#545primodishnew560μsselect*from `media` where `media`.`model_id` in (369) and `media`.`model_type` ='App\\Models\\Establishment'
InteractsWithMedia.php#545primodishnew490μsselect*from `media` where `media`.`model_id` in (369) and `media`.`model_type` ='App\\Models\\Establishment'
Dish.php#97primodishnew690μsselectcount(*) as aggregate from `reviews` where `reviews`.`dish_id` =1125and `reviews`.`dish_id` isnotnulland `id` in (select `id` from `reviews` as `r1` where `r1`.`deleted_at` isnulland `r1`.`dish_id` = `reviews`.`dish_id` and `r1`.`visitor_id` = `reviews`.`visitor_id` and r1.id = (
SELECTMAX(r2.id)
FROM reviews AS r2
WHERE r2.dish_id = r1.dish_id
AND r2.visitor_id = r1.visitor_id
AND r2.deleted_at ISNULL
)) andexists (select*from `visitors` where `reviews`.`visitor_id` = `visitors`.`id` and `deleted_at` isnulland `visitors`.`deleted_at` isnull) andexists (select*from `dishes` where `reviews`.`dish_id` = `dishes`.`id` and `deleted_at` isnulland `dishes`.`deleted_at` isnulland `moderate` ='Approved') and `reviews`.`deleted_at` isnull
Dish.php#151primodishnew2.78msselectavg(`reviews`.`rating`) as aggregate from `reviews` innerjoin (SELECT dish_id, visitor_id, MAX(created_at) AS max_created_at
FROM reviews
WHERE deleted_at ISNULLGROUPBY dish_id, visitor_id) AS latest_reviews on `reviews`.`dish_id` = `latest_reviews`.`dish_id` and `reviews`.`visitor_id` = `latest_reviews`.`visitor_id` and `reviews`.`created_at` = `latest_reviews`.`max_created_at` innerjoin `dishes` on `reviews`.`dish_id` = `dishes`.`id` innerjoin `visitors` on `reviews`.`visitor_id` = `visitors`.`id` where `reviews`.`dish_id` =1125and `reviews`.`dish_id` isnotnulland `dishes`.`deleted_at` isnulland `visitors`.`deleted_at` isnulland `reviews`.`deleted_at` isnull
establishmentlisting.blade.php#555primodishnew860μsselect `dishes`.*, (selectcount(*) from `reviews` where `dishes`.`id` = `reviews`.`dish_id` and `reviews`.`deleted_at` isnulland `id` in (select `id` from `reviews` as `r1` where `r1`.`deleted_at` isnulland `r1`.`dish_id` = `reviews`.`dish_id` and `r1`.`visitor_id` = `reviews`.`visitor_id` and r1.id = (
SELECTMAX(r2.id)
FROM reviews AS r2
WHERE r2.dish_id = r1.dish_id
AND r2.visitor_id = r1.visitor_id
AND r2.deleted_at ISNULL
)) andexists (select*from `visitors` where `reviews`.`visitor_id` = `visitors`.`id` and `deleted_at` isnulland `visitors`.`deleted_at` isnull) andexists (select*from `dishes` where `reviews`.`dish_id` = `dishes`.`id` and `deleted_at` isnulland `dishes`.`deleted_at` isnulland `moderate` ='Approved') and `reviews`.`deleted_at` isnull) as `latest_reviews_count` from `dishes` where `dishes`.`restaurant_id` =369and `dishes`.`restaurant_id` isnotnulland `dishes`.`deleted_at` isnulland `dishes`.`deleted_at` isnulland `moderate` ='Approved'having `latest_reviews_count` >0
Facebook Twitter LinkedIN Telegram WhatsApp Reddit