@php $businessName = null; if (isset($data) && request()->query('location_id')) { $businessName = $data->getBusinessN([ 'merchant_location_id' => request()->query('location_id'), 'first' => true ]); } @endphp