No Description

new_view_annual_plans.blade.php 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @extends('layouts.master-2')
  2. @section('navigation')
  3. @if (Auth::user()->role == 1)
  4. @include('local.managers.admins._navigation')
  5. @elseif(Auth::user()->role == 2)
  6. @include('local.managers.sCoords._new_navigation')
  7. @elseif(Auth::user()->role == 3)
  8. @include('local.managers.pCoords._new_navigation')
  9. @elseif(Auth::user()->role == 4)
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. {{-- TODO: look where to place this script.
  15. if placed inside .ready() or before it,
  16. an error that the function is not defined occurs. --}}
  17. {{-- TODO: no reconoce acentos --}}
  18. <div class="row">
  19. <div class="col-md-12">
  20. <div class="table-responsive table-responsive-0">
  21. <table class="table table-striped table-condensed datatable">
  22. <thead id="theHead">
  23. <tr>
  24. <th>Annual Cycle</th>
  25. <th>PDF Name</th>
  26. <th>User who submitted</th>
  27. <th>Date Submitted </th>
  28. <th>New Version</th>
  29. <th>Download</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. @foreach ($paths_with_users as $info)
  34. <tr>
  35. <td> {{ $info->academic_year }}</td>
  36. <td> <a
  37. href="{{ URL::action('AnnualPlansController@downloadPDF', ['print', $info->path_id]) }}">
  38. {{ basename($info->path_to_pdf) }}
  39. <span class="glyphicon glyphicon-eye-open"></span>
  40. </td>
  41. <td> {{ $info->surnames . ', ' . $info->first_name }}</td>
  42. <td>
  43. {{ $info->date_posted }}
  44. </td>
  45. <td>
  46. @if ($info->last == 1)
  47. <span class="glyphicon glyphicon-ok"></span>
  48. @endif
  49. </td>
  50. <td>
  51. <a type="button" class="btn btn-primary"
  52. href="{{ URL::action('AnnualPlansController@downloadPDF', ['download', $info->path_id]) }}">
  53. Download
  54. <span class="glyphicon glyphicon-download-alt"></span>
  55. </a>
  56. </td>
  57. </tr>
  58. @endforeach
  59. </tbody>
  60. </table>
  61. </div>
  62. </div>
  63. </div>
  64. @stop
  65. @section('included-js')
  66. @include('global._datatables_js')
  67. @stop