@csrf @method('patch') {{----}} {{----}} @php $doctor_shift_ids = explode(',', $doctor_shifts->shifts); $doctor_id=request()->segment(2); $doctor = \App\Models\Doctor::find($doctor_id); @endphp @if(count($appointment_shifts) > 0) @foreach ($appointment_shifts as $key => $shift) @php $doctor_days = \App\Models\AppointmentDoctorShiftDay::select('*', \DB::raw("(GROUP_CONCAT(day_id SEPARATOR ',')) as `days`"), ) ->where('doctor_id', $doctor_id) ->where('shift_id', $shift->id) ->where('chamber_id',$doctor->doctors_chamber_id) ->first(); $doctor_day = explode(',', $doctor_days->days) ?? []; $dataFees = \App\Models\AppointmentDoctorFees::select([ 'id', 'doctor_id', 'shift_id', 'product_id', 'status' ]) ->where('doctor_id', $doctor_id) ->where('shift_id', $shift->id) ->where('chamber_id',$doctor->doctors_chamber_id) ->with('getProduct') ->get(); $doctor_shiftss = \App\Models\AppointmentDoctorShift::select('*') ->where('doctor_id', $id) ->where('shift_id', $shift->id) ->where('chamber_id',$doctor->doctors_chamber_id) ->first(); @endphp {{----}} {{----}} @endforeach @else @endif
Sl No Shifts Appointment SettingsBooking Limit Serial StartDays FeesConsultation FeesWeb Booking App Booking Active Edit
{{$key+1}} {{ ucfirst($shift->name) }} Days: @foreach (daysOfWeek() as $keys => $day) @if(in_array($keys, $doctor_day)) {{ $day }}   @endif @endforeach
Patient Limit: {!! $doctor_shiftss->patient_quantity??'' !!},   Serial Start: {!! isset($doctor_shiftss->serial_start_from) && $doctor_shiftss->serial_start_from?$doctor_shiftss->serial_start_from:'' !!}, Start Time: {!! isset($doctor_shiftss->time_from) && $doctor_shiftss->time_from?formatedTime($doctor_shiftss->time_from):'' !!}, End Time: {!! isset($doctor_shiftss->time_to) && $doctor_shiftss->time_to?formatedTime($doctor_shiftss->time_to):'' !!}
Fees: @if(count($dataFees)>0) @foreach($dataFees as $keysfee => $fees) {{ $fees->getProduct?Str::limit($fees->getProduct->name, 50, ' ..'):'' }} - ({{$fees->getProductPrice?$fees->getProductPrice->mrp:''}}) , @if($keysfee % 1 === 0)
@endif @endforeach @endif
{!! $doctor_shiftss->patient_quantity??'' !!} {!! $doctor_shiftss->serial_start??'' !!}
@if(count($dataFees)>0) @foreach($dataFees as $keysfee => $fees) {{ $fees->getProduct?Str::limit($fees->getProduct->name, 20, ' ..'):'' }} - ({{$fees->getProductPrice?$fees->getProductPrice->mrp:''}}) , @if($keysfee % 1 === 0)
@endif @endforeach @endif
web_booking=='1' ? 'checked' : ''):'' !!} name="shift_id[{{ $shift->id }}]"> app_booking_click=='1' ? 'checked' : ''):'' !!} name="shift_id[{{ $shift->id }}]"> id, $doctor_shift_ids) ? 'checked' : '' !!} name="shift_id[{{ $shift->id }}]"> @if(isset($doctor_shiftss->id)) @endif
No Data Found