/var/www/vhosts/nabawater/frontend/views/branch
Edit: /var/www/vhosts/nabawater/frontend/views/branch/branch-list.php (29670B)
getUser()->getId();
$cuisinesVal = Cuisine::find()->alias('C')
->select(['C.cuisine_id','CL.cuisine_name'])
->leftJoin(['CL' => CuisineLang::tableName()],'CL.cuisine_id = C.cuisine_id and CL.language_code = "en" ')
->where(['C.cuisine_status' => 1])->asArray()->all();
?>
=\yii::t('frontend','Order food online in')?> = substr($searchLocation, 0,40).(strlen($searchLocation)>40?'...':'')?>
= $totalRestaurants ?>
= ($totalRestaurants > 1)? yii::t('frontend','Restaurants Found') : yii::t('frontend','Restaurant Found') ?>.
= Yii::t('frontend', 'Change Location') ?>
= yii::t('frontend','Futured Restaurants') ?>
= $feature['cuisine_name'] ?>
$value) {
$modelTimeSlot = BranchTimeslot::find()
->where([
'day_id' => date('w')+1,
'branch_id' => $data['branch_id'],
'branch_timeslot_status' => Branch::ACTIVE,
])
->andWhere(['<=','timeslot_start_time', date('H:i', time())])
->andWhere(['>','timeslot_end_time', date('H:i', time())])
->andWhere(['timeslot_type' => $value])
->one();
if ($modelTimeSlot !== null) {
$modelTimeSlotCount = 1;
}
}
$modelTimeSlot = $modelTimeSlotCount;
} else {
$modelTimeSlot = BranchTimeslot::find()
->where([
'day_id' => date('w')+1,
'branch_id' => $data['branch_id'],
'branch_timeslot_status' => Branch::ACTIVE,
])
->andWhere(['<=','timeslot_start_time', date('H:i', time())])
->andWhere(['>','timeslot_end_time', date('H:i', time())])
->andWhere(['timeslot_type' => $data['order_type']])
->one();
if ($modelTimeSlot === null) {
$modelTimeSlot = [];
}
}
?>
= Yii::t('frontend', 'Closing at') ?> = date('h:i a', strtotime($branch_timeslot_time['time'])) ?>
= Yii::t('frontend', 'Opening at') ?> = date('h:i a', strtotime($branch_timeslot_time['time'])) ?>
= Yii::t('frontend', 'Opening at') ?> = date('h:i a', strtotime($branch_timeslot_time['time'])) ?>
= Yii::t('frontend', 'business'); ?>= ''.$data['branch_name'].'' ?>
= $data['cusines'] ?>
0 ) {
$rowcount = count($vendortypedetails) - 1;
$count = 0;
foreach ($vendortypedetails as $key => $vendortypedetailsvalue) {
if($rowcount != $count) {
echo $vendortypedetailsvalue['vendor_type_name'].',';
} else {
echo $vendortypedetailsvalue['vendor_type_name'];
}
$count++;
}
}
?>
" vendor="= $data['vendor_id']?>" >
*/ ?>
= 1 ){
$class = "fav-button-add added";
$content = Yii::t('frontend', 'Remove');
} ?>
= $data['delivery_time'].' mins' ?>
= round($data['distance'],2).' KM' ?>
*/ ?>