@extends('layout.app') @section('content')
@if(auth()->user()->isTraitant()) Mes @endif Rendez-vous ({{ $total }})   Ajouter
@php $i = 1; @endphp
@foreach($pasts as $data) @if($i == 1 OR ($i - 1) % 3 == 0)
@endif
@if(!$data->done) @if($data->datePast()) @else @endif @else @endif
{{ $data->title }}

@if(!$data->hasRelatedRecords()) @endif
{!! $data->reason !!}

{{ $data->datetime->translatedFormat('D d F Y') }}

@if(auth()->user()->subStandard() AND $data->type == 'Téléconsultation') Téléconsulter @elseif($data->type == 'Consultation') Consulter @elseif($data->type == 'Hospitalisation') Hospitaliser @endif
Patient : {{ $data->patient->name }} @if(auth()->user()->role == 'Docteur') Dr. @endif {{ $data->user->name }}
@if($i % 3 == 0 OR $loop->last)
@endif @php $i++; @endphp @endforeach
@php $i = 1; @endphp
@foreach($todays as $data) @if($i == 1 OR ($i - 1) % 3 == 0)
@endif

@if(!$data->hasRelatedRecords()) @endif
{{ $data->title }}
@if(!$data->done) @if($data->datePast()) @else @endif @else @endif
{!! $data->reason !!}

{{ $data->datetime->translatedFormat('D d F Y') }}

@if(auth()->user()->subStandard() AND $data->type == 'Téléconsultation') Téléconsulter @elseif($data->type == 'Consultation') Consulter @elseif($data->type == 'Hospitalisation') Hospitaliser @endif
Patient : {{ $data->patient->name }} @if(auth()->user()->role == 'Docteur') Dr. @endif {{ $data->user->name }}
@if($i % 3 == 0 OR $loop->last)
@endif @php $i++; @endphp @endforeach
@php $i = 1; @endphp
@foreach($comings as $data) @if($i == 1 OR ($i - 1) % 3 == 0)
@endif

@if(!$data->hasRelatedRecords()) @endif
{{ $data->title }}
@if(!$data->done) @if($data->datePast()) @else @endif @else @endif
{!! $data->reason !!}

{{ $data->datetime->translatedFormat('D d F Y') }}

@if(auth()->user()->subStandard() AND $data->type == 'Téléconsultation') Téléconsulter @elseif($data->type == 'Consultation') Consulter @elseif($data->type == 'Hospitalisation') Hospitaliser @endif
Patient : {{ $data->patient->name }} @if(auth()->user()->role == 'Docteur') Dr. @endif {{ $data->user->name }}
@if($i % 3 == 0 OR $loop->last)
@endif @php $i++; @endphp @endforeach
@endsection @push('scripts') @endpush