@extends('layouts.master') @section('title') {{ __('sentence.All Patients') }} @endsection @section('content') @if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif
{{ __('sentence.All Appointments') }}
@foreach($appointments as $appointment) @endforeach
ID {{ __('sentence.Patient Name') }} {{ __('sentence.Date') }} {{ __('sentence.Time Slot') }} {{ __('sentence.Status') }} {{ __('sentence.Created at') }} {{ __('sentence.Actions') }}
{{ $appointment->id }} {{ $appointment->User->name }} {{ $appointment->date->format('d M Y') }} {{ $appointment->time_start }} - {{ $appointment->time_end }} @if($appointment->visited == 0) {{ __('sentence.Not Yet Visited') }} @elseif($appointment->visited == 1) {{ __('sentence.Visited') }} @else {{ __('sentence.Cancelled') }} @endif {{ $appointment->created_at->format('d M Y H:i') }}
@endsection @section('header') @endsection @section('footer') @endsection