@extends('layouts.doctor.layout') @section('title') {{ $websiteLang->where('lang_key','treatment')->first()->custom_lang }} @endsection @section('doctor-content')
{{ $websiteLang->where('lang_key','patient_info')->first()->custom_lang }}
@if ($appointment->user->disabilities) @endif
{{ $websiteLang->where('lang_key','name')->first()->custom_lang }} {{ ucwords($appointment->user->name) }}
{{ $websiteLang->where('lang_key','email')->first()->custom_lang }} {{ $appointment->user->email }}
{{ $websiteLang->where('lang_key','age')->first()->custom_lang }} {{ $appointment->user->age }}
{{ $websiteLang->where('lang_key','gender')->first()->custom_lang }} {{ $appointment->user->gender }}
{{ $websiteLang->where('lang_key','disabilities')->first()->custom_lang }} {{ $appointment->user->disabilities }}
{{ $websiteLang->where('lang_key','old_app_history')->first()->custom_lang }} {{ $websiteLang->where('lang_key','history_here')->first()->custom_lang }}
{{ $websiteLang->where('lang_key','app_info')->first()->custom_lang }}
@if ($appointment->user->disabilities) @endif
{{ $websiteLang->where('lang_key','date')->first()->custom_lang }} {{ $appointment->date }}
{{ $websiteLang->where('lang_key','time')->first()->custom_lang }} {{ strtoupper($appointment->schedule->start_time).'-'.strtoupper($appointment->schedule->end_time) }}
{{ $websiteLang->where('lang_key','fee')->first()->custom_lang }} {{ $currency->currency_icon }}{{ $appointment->appointment_fee }}
{{ $websiteLang->where('lang_key','treated')->first()->custom_lang }} @if ($appointment->already_treated==1) {{ $websiteLang->where('lang_key','yes')->first()->custom_lang }} @else {{ $websiteLang->where('lang_key','no')->first()->custom_lang }} @endif
{{ $websiteLang->where('lang_key','disabilities')->first()->custom_lang }} {{ $appointment->user->disabilities }}
@csrf
{{ $websiteLang->where('lang_key','physical_info')->first()->custom_lang }}
@if ($appointment->habits)
@php $edit_habits=$appointment->habits; $edit_habits=json_decode($edit_habits); @endphp
@foreach ($habits as $index => $habit) @php $isSelected=false; @endphp @foreach ($edit_habits as $edit_habit) @if ($edit_habit==$habit->id) @php $isSelected=true; @endphp @endif @endforeach @endforeach @if ($errors->first('habit'))

{{ $errors->first('habit') }}

@endif
@else

@foreach ($habits as $index => $habit) @endforeach
@endif
{{ $websiteLang->where('lang_key','prescribe')->first()->custom_lang }}
@foreach ($appointment->prescribes as $index => $prescribe)
@if ($index==0) @endif @if ($index != 0) @endif
@endforeach
@if ($appointment->advice)
@else
@endif
@endsection