@extends('layouts.master') @section('page_header') Queue @endsection @section('content')
{{-- Check if the user have permissions to create a new queue. If yes, a confirmation is taken when creating a new queue --}} @can('create','App\Queue') @endcan @can('close',$queue) @endcan
@if(session()->has('success'))

Success!

{{session('success')}}
@endif {{--Error Message--}} @if(session()->has('error'))

Error!

{{session('error')}}
@endif {{-- Initialize the angular variables in a hidden field --}} @if(empty($queue)) {{-- Info message if there is no queue --}}

Sorry!

No active queues at the moment! Please create a new queue to continue.
@else {{-- Info message if there are patients in the queue --}}

Sorry!

No Patient in the queue at the moment.

Oops!

[[error]]
{{--Queue--}}
[[$index+1]] [[patient.first_name]] [[patient.last_name]]
@endif
@endsection