@extends('front.patient.inner-layout.app') @section('page_tab_title' ,"My Familiy") @section('content')

My Familiy

@include('front.patient.inner-layout.header')
{{-- @dump($familyMember->familyMembersname->full_name) --}}
@php $familyMembers = $user->familyMembers()->paginate(10) @endphp @forelse($familyMembers as $familyMember) @php if(empty($familyMember->familyMembersname)){ continue; } @endphp @if($loop->first)
@endif
@isset($familyMember->familyMembersname->photo) @else {{ $familyMember->familyMembersname->name[0].$familyMember->familyMembersname->last_name[0] }} @endisset

{{$familyMember->familyMembersname->full_name ?? ""}}

{{$familyMember->relation ?? ""}} Account balance ${{$familyMember->familyMembersname->account_balance ?? ""}}

Upcoming Appointments

@forelse ($familyMember->familyMembersname->appointments()->select('*', DB::raw('concat(`date`," ", `time`) as nextdate'))->having('nextdate', '>=', \Carbon\Carbon::now()->timezone(getAustraliaTimeZone())->format('Y-m-d H:i')) ->where('status','!=','cancelled')->get() as $appointment)

id}}">{{ \Carbon\Carbon::parse($appointment->date)->format('D jS F Y,')}} {{\Carbon\Carbon::parse($appointment->time)->format('g:iA')}}

practitioner->personalProfile->profile_picture) : asset("assets/images/d-user-icon.png")}}' alt="Practitioner Picture" class="imageround img-fluid">

{{$appointment->practitioner->businessProfile->name ?? "Not specified"}}

{{$appointment->practitioner->full_name ?? "Not specified" }} {{$appointment->practitioner->personalProfile->practitionerProfession->name ?? "Not specified"}}
@if(in_array($appointment->pay_status,['paid','owing','credit'])) @if($appointment->client_appointment_status == "arrived") @elseif($appointment->client_appointment_status == '') @endif @endif @if($appointment->pay_status == "pending") @endif

{{$appointment->appointment_type->appointment_type}}

@empty

No Upcoming Appointments

@endforelse @forelse ($familyMember->familyMembersname->appointments()->select('*', DB::raw('concat(`date`," ", `time`) as nextdate')) ->having('nextdate', '<', \Carbon\Carbon::now()->timezone(getAustraliaTimeZone())->format('Y-m-d H:i')) ->where('status', '!=', 'cancelled')->get() as $appointment)

id}}">{{ \Carbon\Carbon::parse($appointment->date)->format('D jS F Y,')}} {{\Carbon\Carbon::parse($appointment->time)->format('g:iA')}}

practitioner->personalProfile->profile_picture) : asset("assets/images/d-user-icon.png")}}' alt="Practitioner Picture" class="img-fluid">

{{$appointment->practitioner->businessProfile->name ?? "Not specified"}}

{{$appointment->practitioner->full_name ?? "Not specified" }} {{$appointment->practitioner->personalProfile->practitionerProfession->name ?? "Not specified"}}
@empty

No Past Appointments

@endforelse
@if($loop->last) {{$familyMembers->links()}}
@endif @empty

No family members added

@endforelse
@endsection @section('modals') @include('front.patient.family.modals.invoice-filter') @include('front.patient.family.modals.reschedule-appointment') @include('front.patient.family.modals.send-single-test') @include('front.patient.family.modals.send-multiple-reports') @include('front.patient.family.modals.send-invoices') @include('front.patient.family.modals.test-result-filter') @endsection @section('css') @endsection @section('js') @endsection