Merge branch 'staging' of http://itcorp.primaya.id:3000/rajif/aso into staging
This commit is contained in:
@@ -22,15 +22,8 @@ class LivechatController extends Controller
|
|||||||
$livechat = Livechat::with('doctor.user', 'doctor.speciality', 'appointment.appointmentDetail', 'healthCare')
|
$livechat = Livechat::with('doctor.user', 'doctor.speciality', 'appointment.appointmentDetail', 'healthCare')
|
||||||
->where('nIDAppointment', '!=', null)->where('nIDAppointment', '!=', '');
|
->where('nIDAppointment', '!=', null)->where('nIDAppointment', '!=', '');
|
||||||
|
|
||||||
// dd($livechat);
|
|
||||||
if ($startDate){
|
|
||||||
$livechat->where('dStartTime', '>=', $startDate);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($endDate){
|
$livechat = $livechat->latest()->paginate(15);
|
||||||
$livechat->where('dStartTime', '<=', $endDate);
|
|
||||||
}
|
|
||||||
$livechat->latest()->paginate(15);
|
|
||||||
|
|
||||||
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
|
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ class CorporateService
|
|||||||
public function handleBenefitRow(Corporate $corporate, $row)
|
public function handleBenefitRow(Corporate $corporate, $row)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// $row['limit_free_tc'] = 0;
|
$row['limit_free_tc'] = 0;
|
||||||
$benefit_data = $row;
|
$benefit_data = $row;
|
||||||
$this->validateBenefitRow($benefit_data, $corporate->id);
|
$this->validateBenefitRow($benefit_data, $corporate->id);
|
||||||
$benefit_data["corporate_id"] = $corporate->id;
|
$benefit_data["corporate_id"] = $corporate->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user