Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. foreach ($interviews as $key => $value) : ?>
  2. <tr>
  3. <input type="hidden" name="id" value="{{ $value->id }}"/>
  4. <td><?php echo $index; $index++; ?></td>
  5. <td>{{ $value->candidate()->first()->last_name." ".$value->candidate()->first()->first_name }}</td>
  6. <td>
  7. <?php
  8. $positions = $value->candidate()->first()->positions()->get();
  9. foreach ($positions as $k_p => $v_p) {
  10. echo "<p>".$v_p->name."</p>";
  11. }
  12. ?>
  13. </td>
  14. <td><p style="display:none">{{ $value->time_interview }}</p> <input value="{{ $value->time_interview }}" class="time_interview" style="width:109px" /></td>
  15. <td><input value="{{ $value->time }}" class="ui-timepicker-input time" type="text" style="width:109px" /></td>
  16.  
  17. <td>
  18. {!! Form::select('employee_id',$employall,$value->employee_id, ['class'=>'js-example-basic-multiple form-control']) !!}
  19. </td>
  20.  
  21. <td>
  22. {!! Form::select('status_record_id',$statusrecord,$value->candidate()->first()->status_record_id, ['class'=>'js-example-basic-multiple form-control']) !!}
  23. </td>
  24.  
  25. <td>
  26. <div class="text-blue accept itemaction" title="Save">
  27. <i class="fa fa-fw fa-floppy-o"></i>
  28. </div>
  29. <a class="text-blue" data-toggle="modal" data-target="#myModal<?php echo $index;?>" title="Download">
  30. <i class="fa fa-download"></i>
  31. </a>
  32.  
  33. <!-- <div class="text-blue refresh itemaction" title="Refresh">
  34. <i class="fa fa-fw fa-refresh"></i>
  35. </div> -->
  36. </td>
  37. </tr>
  38.  
  39. <!-- Modal -->
  40. <div id="myModal<?php echo $index;?>" class="modal fade" role="dialog">
  41. <div class="modal-dialog">
  42.  
  43. <!-- Modal content-->
  44. <div class="modal-content">
  45. <div class="modal-header">
  46. <button type="button" class="close" data-dismiss="modal">&times;</button>
  47. <h4 class="modal-title">Download file attachment</h4>
  48. </div>
  49. <div class="modal-body">
  50. <select class="choose_file_download select2">
  51. <?php
  52. $files = $value->candidate()->first()->files()->get();
  53. // $files = $value->candidate()->files()->get();
  54. foreach ($files as $k_f => $v_f) {
  55. ?>
  56. <option value="<?php echo $value->candidate()->first()->id.'/'.$v_f->name;?>"><?php echo $v_f->name;?></option>
  57. <?php
  58. }
  59. ?>
  60. </select>
  61. <button class="btn btn-primary download">Download</button>
  62. </div>
  63. <div class="modal-footer">
  64. <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
  65. </div>
  66. </div>
  67.  
  68. </div>
  69. </div>
  70. <!-- end Modal -->
  71.  
  72. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement