Commit 9ece4edc by Jansa Jose

booked service

parent 915cec3f
......@@ -135,14 +135,13 @@ class Webservice_model extends CI_Model {
$this->db->select('booking_id as id,scheduled_date as date,scheduled_time as time');
$bookData = $this->db->get_where('bookings',array('customer_id'=>$id))->result_array();
if(!empty($bookData) && (count($bookData) > 0)){
$respArr['status'] = 'success';
$respArr['data'] = $bookData;
$respArr['message'] = 'success';
if(!empty($bookData) && (count($bookData) > 0)){
$respArr['data']['booked_services'] = $bookData;
}else{
$respArr['status'] = 'success';
$respArr['data'] = [];
$respArr['message'] = 'success';
$respArr['data']['booked_services'] = [];
}
return $respArr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment