@if($appointment->status == 'cancelled') @php $refundAmount = $appointment->getRefundAmount(); @endphp
{{ $refundAmount >= 0 ? __('frontend.refund_completed') : __('frontend.wallet_deducted') }} {{ \Currency::format(abs($refundAmount)) }}
@endif
  • {{ DateFormate($appointment->appointment_date) }} {{ \Carbon\Carbon::parse($appointment->appointment_time)->format(setting('time_formate') ?? 'h:i A') }}
    @php $serviceId = optional($appointment->clinicservice)->id; @endphp @if($serviceId) @endif
    {{ optional($appointment->clinicservice)->name }}

    {{ __('frontend.appointment_type') }}

    {{ \Illuminate\Support\Str::title(str_replace('_', ' ', optional($appointment->clinicservice)->type)) }}

    {{ __('frontend.clinic_name') }}

    {{ optional($appointment->cliniccenter)->name }}

    {{ __('frontend.booking_status') }}

    {{ \Illuminate\Support\Str::title(str_replace('_', ' ', $appointment->status === 'checkout' ? 'Complete' : $appointment->status)) }}

    {{ __('frontend.doctor_name') }}

    {{getDisplayName($appointment->doctor)}}

    {{ __('frontend.price') }}

    @php $total_amount = 0; if ($appointment->patientEncounter != null) { if (!empty(optional($appointment->patientEncounter->billingrecord)->final_total_amount)) { $total_amount = optional($appointment->patientEncounter->billingrecord)->final_total_amount; } else { $total_amount = $appointment->total_amount; } } else { $total_amount = $appointment->total_amount; } @endphp
    {{ Currency::format($total_amount) ?? '--' }}

    {{ __('frontend.payment_status') }}

    @if($appointment->appointmenttransaction && $appointment->appointmenttransaction->payment_status) @if($appointment->status == 'cancelled') @if($appointment->advance_paid_amount > 0) {{ __('frontend.advance_refunded') }} @else {{ __('frontend.payment_refunded') }} @endif @else Paid @endif @elseif($appointment->advance_paid_amount > 0) @if($appointment->status == 'cancelled') {{ __('frontend.advance_refunded') }} @else {{ __('frontend.advance_paid') }} @endif @else {{ optional($appointment->appointmenttransaction)->payment_status ? 'Paid' : 'Pending' }} @endif
    @if($appointment->otherPatient)
    {{ __('frontend.booked_for') }}
    {{ optional($appointment->otherPatient)->first_name }} {{ optional($appointment->otherPatient)->first_name }} {{ optional($appointment->otherPatient)->last_name }}
    @endif
    @if ($appointment->status == 'pending' && $appointment->appointmenttransaction->transaction_type == 'cash' ) @elseif($appointment->status == 'pending' || $appointment->status == 'confirmed') @endif @if ($appointment->status == 'checkout' ?? $appointment->status == 'check_in') @endif
    {{ __('frontend.view_detail') }} @php $serviceRating = optional($appointment->clinicservice)->serviceRating; @endphp @if (!is_null($serviceRating) && $serviceRating->isEmpty() && $appointment->status == 'checkout') @endif
  • {{-- Encounter modal --}}