institutes.blade.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('admin.layout.index')
  2. @push('css-head')
  3. @endpush
  4. @section('content')
  5. <!-- Page header -->
  6. <div class="page-header page-header-light">
  7. <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
  8. <div class="d-flex">
  9. <div class="breadcrumb">
  10. <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
  11. <span class="breadcrumb-item active">Institutes</span>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. <!-- /page header -->
  17. <!-- Content area -->
  18. <div class="content">
  19. <div class="card">
  20. <table class="table datatable-basic">
  21. <thead>
  22. <tr>
  23. <th style="width: 5%;">#</th>
  24. <th>Name</th>
  25. <th class="text-center">Total Courses</th>
  26. <th class="text-center">Actions</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($institutes as $key => $row)
  31. <tr>
  32. <td>{{ ++$key }}</td>
  33. <td>{{ $row->name }}, {{ $row->destination->name }}</td>
  34. <td class="text-center">{{ $row->courses()->count() }}</td>
  35. <td class="text-center">
  36. <a href="{{ url('admin/institutes/edit_entry_req') }}/{{ $row->id }}/0" class="">
  37. <i class="icon-pencil7"></i> Courses
  38. </a>
  39. </td>
  40. </tr>
  41. @endforeach
  42. </tbody>
  43. </table>
  44. </div>
  45. </div>
  46. <!-- /content area -->
  47. @endsection
  48. @push('scripts')
  49. <script src="{{ asset('/assets/global/js/plugins/notifications/sweet_alert.min.js') }}"></script>
  50. <script src="{{ asset('/assets/global/js/plugins/tables/datatables/datatables.min.js') }}"></script>
  51. <script src="{{ asset('/assets/global/js/demo_pages/datatables_basic.js') }}"></script>
  52. <script type="text/javascript">
  53. $(document).ready(function(){
  54. $('[data-toggle="tooltip"]').tooltip();
  55. });
  56. </script>
  57. @endpush