Created
July 9, 2015 07:59
-
-
Save phanngoc/888d947c09198bb31ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($interviews as $key => $value) : ?> | |
<tr> | |
<input type="hidden" name="id" value="{{ $value->id }}"/> | |
<td><?php echo $index; $index++; ?></td> | |
<td>{{ $value->candidate()->first()->last_name." ".$value->candidate()->first()->first_name }}</td> | |
<td> | |
<?php | |
$positions = $value->candidate()->first()->positions()->get(); | |
foreach ($positions as $k_p => $v_p) { | |
echo "<p>".$v_p->name."</p>"; | |
} | |
?> | |
</td> | |
<td><p style="display:none">{{ $value->time_interview }}</p> <input value="{{ $value->time_interview }}" class="time_interview" style="width:109px" /></td> | |
<td><input value="{{ $value->time }}" class="ui-timepicker-input time" type="text" style="width:109px" /></td> | |
<td> | |
{!! Form::select('employee_id',$employall,$value->employee_id, ['class'=>'js-example-basic-multiple form-control']) !!} | |
</td> | |
<td> | |
{!! Form::select('status_record_id',$statusrecord,$value->candidate()->first()->status_record_id, ['class'=>'js-example-basic-multiple form-control']) !!} | |
</td> | |
<td> | |
<div class="text-blue accept itemaction" title="Save"> | |
<i class="fa fa-fw fa-floppy-o"></i> | |
</div> | |
<a class="text-blue" data-toggle="modal" data-target="#myModal<?php echo $index;?>" title="Download"> | |
<i class="fa fa-download"></i> | |
</a> | |
<!-- <div class="text-blue refresh itemaction" title="Refresh"> | |
<i class="fa fa-fw fa-refresh"></i> | |
</div> --> | |
</td> | |
</tr> | |
<!-- Modal --> | |
<div id="myModal<?php echo $index;?>" class="modal fade" role="dialog"> | |
<div class="modal-dialog"> | |
<!-- Modal content--> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal">×</button> | |
<h4 class="modal-title">Download file attachment</h4> | |
</div> | |
<div class="modal-body"> | |
<select class="choose_file_download select2"> | |
<?php | |
$files = $value->candidate()->first()->files()->get(); | |
// $files = $value->candidate()->files()->get(); | |
foreach ($files as $k_f => $v_f) { | |
?> | |
<option value="<?php echo $value->candidate()->first()->id.'/'.$v_f->name;?>"><?php echo $v_f->name;?></option> | |
<?php | |
} | |
?> | |
</select> | |
<button class="btn btn-primary download">Download</button> | |
</div> | |
<div class="modal-footer"> | |
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- end Modal --> | |
<?php endforeach; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment