@extends('fronts.layouts.app') @section('front-title') {{ __('messages.web.medical_doctors') }} @endsection @section('front-content') @php $styleCss = 'style'; @endphp

{{ __('messages.qr_patient_detail.patient_detail') }}

{{ $data['todayAppointmentCount'] }}

{{ __('messages.patient_dashboard.today_appointments') }}

{{ $data['upcomingAppointmentCount'] }}

{{ __('messages.patient_dashboard.upcoming_appointments') }}

{{ $data['completedAppointmentCount'] }}

{{ __('messages.patient_dashboard.completed_appointments') }}
@hasanyrole('clinic_admin|doctor|patient') @if (auth()->user()->hasRole('patient')) @if (auth()->user()->id == $patient->user->id)
{{ Form::hidden('patient_role', getLogInUser()->hasRole('patient'), ['id' => 'patientRolePatientDetail']) }} @include('fronts.patient_qr_code.show_fields')
@foreach ($appointment as $val) @endforeach
{{ __('messages.visit.doctor') }} {{ __('messages.appointment.appointment_at') }} {{ __('messages.appointment.status') }}
{{ $val->doctor->user->full_name }}
{{ $val->doctor->user->email }}
{{ $val->from_time }} {{ $val->from_time_type }} - {{ $val->to_time }} {{ $val->to_time_type }}
{{ \Carbon\Carbon::parse($val->date)->isoFormat('DD MMM YYYY') }}
@if ($val->status == $book) {{ $val->status == $book ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[1])) : '' }} @endif @if ($val->status == $checkIn) {{ $val->status == $checkIn ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[2])) : '' }} @endif @if ($val->status == $checkOut) {{ $val->status == $checkOut ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[3])) : '' }} @endif @if ($val->status == $cancel) {{ $val->status == $cancel ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[4])) : '' }} @endif
@foreach ($visit as $val) @endforeach
{{ __('messages.visit.doctor') }} Visit Date Action
{{ $val->visitDoctor->user->full_name }}
{{ $val->visitDoctor->user->email }}
{{ \Carbon\Carbon::parse($val->visit_date)->isoFormat('DD MMM YYYY') }}
{{ Form::hidden('patient_role', getLogInUser()->hasRole('patient'), ['id' => 'patientRolePatientDetail']) }} @if(!empty($visit[0])) @include('fronts.patient_qr_code.show_visit_patient_detail') @endif
@endif @else @hasanyrole('clinic_admin|doctor')
{{ Form::hidden('patient_role', getLogInUser()->hasRole('patient'), ['id' => 'patientRolePatientDetail']) }} @include('fronts.patient_qr_code.show_fields')
@foreach ($appointment as $val) @endforeach
{{ __('messages.visit.doctor') }} {{ __('messages.appointment.appointment_at') }} {{ __('messages.appointment.status') }}
{{ $val->doctor->user->full_name }}
{{ $val->doctor->user->email }}
{{ $val->from_time }} {{ $val->from_time_type }} - {{ $val->to_time }} {{ $val->to_time_type }}
{{ \Carbon\Carbon::parse($val->date)->isoFormat('DD MMM YYYY') }}
@if ($val->status == $book) {{ $val->status == $book ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[1])) : '' }} @endif @if ($val->status == $checkIn) {{ $val->status == $checkIn ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[2])) : '' }} @endif @if ($val->status == $checkOut) {{ $val->status == $checkOut ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[3])) : '' }} @endif @if ($val->status == $cancel) {{ $val->status == $cancel ? __('messages.common.' . strtolower(\App\Models\Appointment::STATUS[4])) : '' }} @endif
@foreach ($visit as $val) @endforeach
{{ __('messages.visit.doctor') }} Visit Date Action
{{ $val->visitDoctor->user->full_name }}
{{ $val->visitDoctor->user->email }}
{{ \Carbon\Carbon::parse($val->visit_date)->isoFormat('DD MMM YYYY') }}
{{ Form::hidden('patient_role', getLogInUser()->hasRole('patient'), ['id' => 'patientRolePatientDetail']) }} @if(!empty($visit[0])) @include('fronts.patient_qr_code.show_visit_patient_detail') @endif
@endrole @endif @endrole
@endsection