@php $editableClass = "" @endphp @if ( in_array($authUser->user_role_id, [ROLE_DEPARTMENT_ADMIN, ROLE_ADMIN, ROLE_SUPER_ADMIN]) || $authUser->edit_crew_profile) @php $editableClass = "staff_travel" @endphp @endif {!! Form::open(['method' => 'POST', 'class' => 'form-inline']) !!} @php $counter = 0 @endphp @foreach($user->userHistory as $i => $history) @if ($history->condition && !in_array($history->condition->name, ['Training', 'Office Duty'])) @php $counter++ @endphp @endif @endforeach @if ($counter == 0) @endif
No Condition @lang("content.from") @lang("content.to") @lang("content.actions")
{!! Form::label('history', $i+1) !!} {!! Form::select('condition', $conditions, $history->condition_id, ['disabled', 'disabled']) !!} {!! Form::input('text', 'condition_from', date('d-M-Y', strtotime($history->condition_from)), ['class' => 'date_format no_borders', 'style' => 'width:120px', 'disabled' => 'disabled']) !!} {!! Form::input('text', 'condition_to', date('d-M-Y', strtotime($history->condition_to)), ['class' => 'date_format no_borders', 'style' => 'width:120px', 'disabled' => 'disabled']) !!}
{!! Form::label('history', 1) !!} {!! Form::select('condition', $conditions, null, ['disabled', 'disabled']) !!} {!! Form::input('text', 'condition_from', null, ['class' => 'date_format no_borders', 'style' => 'width:120px', 'disabled' => 'disabled']) !!} {!! Form::input('text', 'condition_to', null, ['class' => 'date_format no_borders', 'style' => 'width:120px', 'disabled' => 'disabled']) !!}
{!! Form::close() !!}