@extends('layouts.'.Auth::user()->role.'_layout') @section('title') {{ __('Waiting Room') }} @endsection @section('content')
@forelse($list as $key => $visitor) @empty @endforelse
{{ __('Order') }} {{ __('Visitor') }} {{ __('With appointment') }} {{ __('Reason for consultation') }} {{ __('Created at') }} {{ __('Status') }} {{ __('Actions') }}
{{ $key+1 }} {{ $visitor->User->name }} @if($visitor->has_appointment == 1) @else @endif {{ $visitor->reason ?? __('N/A') }} @if($visitor->status == 1) @else @endif @if(@Collect($list)->where('status', 1)->first()['id'] == $visitor->id) @endif


{{ __('There are no patients in the waiting room') }}
{{ __('Current patient') }}
@if(isset(Collect($list)->where('status',2)->first()->User->name)) {{ @Collect($list)->where('status',2)->first()->User->name }} @else -- @endif
{{ __('Next patient') }}
@if(isset(Collect($list)->where('status',1)->first()->User->name)) {{ @Collect($list)->where('status',1)->first()->User->name }} @else -- @endif
{{ __('Waiting patients') }}
{{ @Collect($list)->where('status', 1)->count() }}
@endsection @section('footer') @endsection