@if(isset($data->bannerUrl) && $data->bannerUrl != "") @endif
Patient Campaign Service Report
{{-- --}} {{-- --}} {{-- --}} @foreach($data->PrintList as $index => $obj) @php $total_vitals = isset($obj->vitals[0]->data->valueList) ? count($obj->vitals[0]->data->valueList) : 0; $total_complain = isset($obj->complain[0]->data->valueList) ? count($obj->complain[0]->data->valueList) : 0; $total_service = isset($obj->service[0]->data->valueList) ? count($obj->service[0]->data->valueList) : 0; $lengths = max($total_vitals,$total_complain,$total_service); @endphp @if($loop->first) @if(isset($obj->patientInfo[0]->data->valueList[0]->branchName)) @else @endif @if(isset($obj->patientInfo[0]->data->valueList[0]->subBranchName)) @else @endif @if(isset($obj->patientInfo[0]->data->valueList[0]->createdDate)) @endif @endif @if(isset($obj->vitals[0])) @foreach($obj->vitals[0]->data->valueList as $ii1 => $value1) {{-- --}} @endforeach @endif @if(isset($obj->complain[0])) @foreach($obj->complain[0]->data->valueList as $ii2 => $value2) {{-- --}} @endforeach @endif @if(isset($obj->service[0])) @foreach($obj->service[0]->data->valueList as $ii3 => $value3) {{-- --}} @endforeach @endif @endforeach
SL Name Reg no Age Sex Branch Sub BranchLocationDate vitals complains ServicesTotal ServiceValue
{{$index + 1}} {{$obj->patient->name}} {{-- {{$lengths}}--}} {{$obj->patient->registrationNo}} {{\Carbon\Carbon::parse($obj->patient->dob)->diff(\Carbon\Carbon::now())->format('%y y, %m m')}} {{$obj->patient->gender}}{{$obj->patientInfo[0]->data->valueList[0]->branchName}}N/A{{$obj->patientInfo[0]->data->valueList[0]->subBranchName}}N/A{{$Controller::dateFormatter($obj->patientInfo[0]->data->valueList[0]->createdDate)}}{{$Controller::dateFormatter($value->createdDate)}}{{$value1->type}}{{$Controller::dateFormatter($value->createdDate)}}{{$value2->name}}{{$Controller::dateFormatter($value->createdDate)}}{{$value3->name}}