No Description

new_view_annual_plans.blade.php 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @extends('layouts.master-2')
  2. @section('navigation')
  3. @if (Auth::user()->role == 1)
  4. @include('local.managers.admins._new_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. </tr>
  30. </thead>
  31. <tbody>
  32. @foreach ($paths_with_users as $info)
  33. <tr>
  34. <td> {{ $info->academic_year }}</td>
  35. <td> <a
  36. href="{{ URL::action('AnnualPlansController@findHTML', [ $annual_report_or_plan,$info->path_id]) }}">
  37. {{ str_replace('.blade.php','',basename($info->path_to_pdf))}}
  38. <span class="glyphicon glyphicon-eye-open"></span>
  39. </td>
  40. <td> {{ $info->surnames . ', ' . $info->first_name }}</td>
  41. <td>
  42. {{ $info->date_posted }}
  43. </td>
  44. <td>
  45. @if ($info->last == 1)
  46. <span class="glyphicon glyphicon-ok"></span>
  47. @endif
  48. </td>
  49. </tr>
  50. @endforeach
  51. </tbody>
  52. </table>
  53. </div>
  54. </div>
  55. </div>
  56. @stop
  57. @section('included-js')
  58. @include('global._datatables_js')
  59. @stop