@if(count($users)) @foreach($users as $user) {!! $user->Profile->first_name !!} {!! $user->DesignationName !!} {!! $user->Profile->unique_identification_number !!} {!! $user->Profile->nationality !!} {!! (!empty($user->Profile->date_of_birth)) ? showDate($user->Profile->date_of_birth).' ('.getAge($user->Profile->date_of_birth).'Yrs)' : '' !!} @if (!isClientRole()) {!! Form::open(['url' => '/officer-deployment/'.$location_id.'/unassign/'.$user->id.'?type='.$user->type, 'id' => $user->id.'-unassign-form', 'data-table-refresh' => $user->type.'-table']) !!} {!! Form::button(' '.trans('messages.unassign').' '.trans('messages.officer'),['class' => 'btn btn-danger btn-sm', 'data-submit-alert-message' => 'Yes', 'type' => 'submit', 'data-alert-message' => trans('messages.action_confirm_message')]) !!} {!! Form::close() !!} @endif @endforeach @else {{trans('messages.no_data_found')}} @endif