| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <div class="col card--ui" id="card--dashboard">
- <header id="title--section" class="d-flex align-items-center justify-content-between">
- <div class="title--section_name d-flex align-items-center justify-content-between">
- <i class="ico--ui title_section utenti me-2"></i>
- <h2 class="primary">Iscritti ai corsi</h2>
- </div>
- </header>
- <section id="resume-table">
- <div class="compare--chart_wrapper d-none"></div>
- <table class="table tablesaw tablesaw-stack" id="tablesaw-350">
- <thead>
- <tr>
- <th scope="col">#</th>
- <th scope="col">Corso</th>
- <th scope="col">Cognome</th>
- <th scope="col">Nome</th>
- <th scope="col">Età</th>
- <th scope="col">Telefono</th>
- <th scope="col">Email</th>
- </tr>
- </thead>
- <tbody id="checkall-target">
- @foreach($records as $idx => $record)
- <tr>
- <td>{{$idx +1}}</td>
- <td>{{$record->course->name}}</td>
- <td>{{$record->member->last_name}}</td>
- <td>{{$record->member->first_name}}</td>
- <td>{{$record->member->getAge() . " (" . date("Y", strtotime($record->member->birth_date)) . ")"}}</td>
- <td>{{$record->member->phone}}</td>
- <td>{{$record->member->email}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </section>
- </div>
- @push('scripts')
- <link href="/css/datatables.css" rel="stylesheet" />
- <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
- <script src="/assets/js/datatables.js"></script>
- <script src="https://cdn.datatables.net/buttons/3.0.2/js/buttons.dataTables.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
- @endpush
- @push('scripts')
- <script>
- $(document).ready(function() {
- loadDataTable();
- } );
- Livewire.on('load-data-table', () => {
- loadDataTable();
- });
- function loadDataTable(){
- $('#tablesaw-350').DataTable({
- thead: {
- 'th': {'background-color': 'blue'}
- },
- layout: {
- topStart: {
- buttons: [
- {
- extend: 'excelHtml5',
- title: 'Iscritti corsi'
- },
- {
- extend: 'pdfHtml5',
- title: 'Iscritti corsi'
- },
- {
- extend: 'print',
- text: 'Stampa',
- title: 'Iscritti corsi'
- }
- ]
- }
- },
- pagingType: 'numbers',
- "language": {
- "url": "/assets/js/Italian.json"
- }
- });
- $('#tablesaw-350 thead tr th').addClass('col');
- $('#tablesaw-350 thead tr th').css("background-color", "#EDF0F2");
- }
- </script>
- @endpush
|