@extends('layouts.app') @section('title', '| Agendamento') @section('sidebar_appointments', 'active') @section('content')
{{ $appointment->start_date->format('d/m H:i') . ' - ' . ($user->type === 'patient' ? $appointment->doctor->name : $appointment->patient->name) }}
{{ $user->type === 'patient' ? $appointment->doctor->name : $appointment->patient->name }}
{{ $appointment->present()->status }} doctor
{{ $appointment->start_date->format('d/m H:i') }}
Data de início
{{ $appointment->end_date->format('d/m H:i') }}
Data de término
@if ($appointment->status === 'pending') @endif
@endsection