1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- @extends('admin.layout.index')
- @push('css-head')
- @endpush
- @section('content')
- <!-- Page header -->
- <div class="page-header page-header-light">
- <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
- <div class="d-flex">
- <div class="breadcrumb">
- <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
- <span class="breadcrumb-item active">Institutes</span>
- </div>
- </div>
- </div>
- </div>
- <!-- /page header -->
- <!-- Content area -->
- <div class="content">
- <div class="card">
- <table class="table datatable-basic">
- <thead>
- <tr>
- <th style="width: 5%;">#</th>
- <th>Name</th>
- <th class="text-center">Total Courses</th>
- <th class="text-center">Actions</th>
- </tr>
- </thead>
- <tbody>
- @foreach($institutes as $key => $row)
- <tr>
- <td>{{ ++$key }}</td>
- <td>{{ $row->name }}, {{ $row->destination->name }}</td>
- <td class="text-center">{{ $row->courses()->count() }}</td>
- <td class="text-center">
- <a href="{{ url('admin/institutes/edit_entry_req') }}/{{ $row->id }}/0" class="">
- <i class="icon-pencil7"></i> Courses
- </a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
- <!-- /content area -->
- @endsection
- @push('scripts')
- <script src="{{ asset('/assets/global/js/plugins/notifications/sweet_alert.min.js') }}"></script>
- <script src="{{ asset('/assets/global/js/plugins/tables/datatables/datatables.min.js') }}"></script>
- <script src="{{ asset('/assets/global/js/demo_pages/datatables_basic.js') }}"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('[data-toggle="tooltip"]').tooltip();
- });
- </script>
- @endpush
|