@extends('Admin.layouts.app') @section('title', 'Appointment View') @section('content')

Appointment Details

Appointment Details
@if(Session::has('success'))
{{ Session::get('success') }}
@endif
@if($appointment->type == 'online' || $appointment->type == 'physical')
@csrf
@if($appointment->type != 'online' || !$appointment->provider_id)

Assign Provider

@php $ProviderServiceIds = \App\Models\ProviderService::where('service_id', $appointment->provider_service_id)->get()->pluck('user_id')->toArray(); $providers = \App\Models\User::whereIn('id', $ProviderServiceIds)->get(); @endphp {{ $errors->first('provider_id') ?? null }}
@endif
@endif

Provider Name

{{ $appointment->provider ? $appointment->provider->name : '---' }}

Seeker Name

{{ $appointment->seeker ? $appointment->seeker->name : '---' }}

Service

{{ $serviceName }}

Appointment Type

{{ $appointment->type }}

Appointment Date

{{ Carbon\Carbon::parse($appointment->booking_date)->format('m-d-Y') }}

Appointment Start Time

{{ $appointment->start_time }}

Appointment End Time

{{ $appointment->end_time }}

Appointment Fee

{{ $appointment->service_amount }} USD

Appointment Status

{{ $appointment->status }}

@if($appointment->status == "Cancelled")

Cancel Reason

{{ $appointment->cancel_reason }}

@endif
@endsection