@if(isset($mode_add) || isset($mode_edit))
@if(isset($mode_edit) && isset($dancer))
{!! Form::model($dancer, ['url' => Request::url(), 'method'=>'post', 'class'=>'form-horizontal']) !!}
@else
{!! Form::open(['url' => Request::url(), 'method'=>'post', 'class'=>'form-horizontal']) !!}
@endif
@if(isset($mode_edit))
The date of birth cannot be edited. Please delete and re-add the dancers if you wish to do so.
@else
@endif
{!! Form::close() !!}
@else
@if(!Auth::guard('groups')->user()->isLocked())
Add
@endif
@endif
@if(!isset($mode_edit))
Name |
Date of birth |
|
@foreach($dancers as $dancer)
{{$dancer->first_name}} {{$dancer->last_name}} |
{{$dancer->date_of_birth->toDateString()}} |
@if(!Auth::guard('groups')->user()->isLocked())
Edit Delete |
@else |
@endif
@endforeach
@endif