@extends('front.layout.app')
@include('front.layout.header')
  • Filters
  • {{-- Find My Appointment --}} {{-- --}}
@section('content') @php $markers = array(); @endphp
@foreach ($practitioners as $practitioner) @php if(isset($practitioner->businessProfile->address)){ $markers[] = array( str_replace(","," | ",$practitioner->businessProfile->address), $practitioner->businessProfile->latitude, $practitioner->businessProfile->longitude ); } @endphp
Featured Listing

{{$practitioner->full_name ?? ""}} {{-- {{$practitioner->personalProfile->profession ?? ""}} --}} {{ ProfessionsGet($practitioner->personalProfile->profession ?? "")}} {{-- Osteopath, Chiropractor --}}

  • 47

{{$practitioner->businessProfile->name ?? ""}}

{{$practitioner->businessProfile->address ?? ""}}

1.6 km Away
@if($practitioner->availability_status == "online") @endif
@if($practitioner->availability_status == "online")

Book now

    @if($practitioner->tradingDays()) @php $timestamp = strtotime('today'); $day = ""; for ($i = 0; $i < 3; $i++){ $dayDateTime = new Carbon\Carbon($timestamp); //$day = strftime('%A', $timestamp); $day = $dayDateTime->isoFormat('dddd'); $date = $dayDateTime->isoFormat('ddd DD MMM'); $timestamp = strtotime('+1 day', $timestamp); $availableSlots = $practitioner->tradingDays() ->where('status','open') ->where('day',$dayDateTime->isoFormat('dddd')) ->where('start_time','!=','00:00:00') ->where('end_time','!=','00:00:00') ->first(); if(!empty($availableSlots)){ $start = new Carbon\Carbon($availableSlots->start_time); $end = new Carbon\Carbon($availableSlots->end_time); $workingHours = $start->diff($end)->format('%h'); $slots = ($workingHours * 60) / 15; @endphp @for($j=0; $j < 3 ; $j++) @php $isExist = App\Models\PractitionerAppoitment::where('time',$start->format('H:i:00'))->where('date',$dayDateTime->format('Y-m-d'))->where('practitioner_id',$practitioner->id)->count(); if( $isExist > 0){ $start->addMinutes(15)->format('g:i A'); continue; } @endphp
  • @php $start->addMinutes(15)->format('g:i A'); @endphp @endfor @php } } @endphp @endif
@else

Currently unavailable for online bookings

@endif
@endforeach @php $locationmarkers = json_encode($markers); @endphp
@endsection @section('bodyClass','fma-result-area fma-result-area-header home-header search-result-header') @section('css') @endsection @section('js') {{-- --}} {{-- --}} {{-- --}} @endsection