| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <div class="col">
- <div class="row h-100">
- <div class="col-auto filterWrapper" id="filter--section" wire:ignore.self>
- <aside>
- <header>
- <h2>Filtra Scadenze</h2>
- </header>
- <form action="" id="filter--form" class="dark-form row">
- <div class="filter--item">
- <span class="filter--item_title">Tipologia</span>
- <div class="filter--item_formElement row">
- <div class="col-12">
- <div class="form-check form-check-inline d-inline-flex align-items-center">
- <input class="form-check-input" type="checkbox" wire:model="filterC" onclick="destroyDataTable()">
- <label class="form-check-label ms-2" >Certificato</label>
- </div>
- <div class="form-check form-check-inline d-inline-flex align-items-center">
- <input class="form-check-input" type="checkbox" wire:model='filterT' onclick="destroyDataTable()">
- <label class="form-check-label ms-2" >Tessera</label>
- </div>
- </div>
- </div>
- </div>
- <div class="filter--item">
- <span class="filter--item_title">Periodo scadenza</span>
- <div class="filter--item_formElement">
- <input id="date" type="date" class="form-control" wire:model="filterFrom" style="background-color:white">
- </div>
- <div class="filter--item_formElement">
- <input id="date" type="date" class="form-control" wire:model="filterTo" style="background-color:white">
- </div>
- </div>
- </form>
- <footer>
- <div class="filter--buttons d-flex align-items-center justify-content-between">
- <button class="btn--ui small dark disable" wire:click.prevent="disableSearch()" onclick="destroyDataTable()">cancella</button>
- <button class="btn--ui small white" wire:click.prevent="search()" onclick="destroyDataTable()">filtra</button>
- </div>
- </footer>
- </aside>
- </div>
- <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">Scadenze</h2>
- </div>
- </header>
- <button id="open-filter" onclick="pcsh1()"></button>
- <button id="close-filter" onclick="pcsh2()"></button>
- <section id="resume-table">
- <div class="compare--chart_wrapper d-none"></div>
- <table class="table tablesaw tablesaw-stack" data-tablesaw="" id="tablesaw-350">
- <thead>
- <tr>
- <th scope="col" >Tipologia</th>
- <th scope="col" >Data</th>
- <th scope="col" >Persona</th>
- </tr>
- </thead>
- <tbody id="checkall-target">
- @foreach($records as $record)
- <tr>
- <td>{{$record["type"]}}</td>
- <td>{{date("d/m/Y", strtotime($record["date"]))}}</td>
- <td>{{$record["name"]}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <!--
- <div class="paginator d-flex justify-content-center">
- <nav aria-label="Page navigation example">
- <ul class="pagination">
- <li class="page-item">
- <a class="page-link" href="#" aria-label="Previous">
- <span aria-hidden="true"></span>
- </a>
- </li>
- <li class="page-item"><a class="page-link" href="#">1</a></li>
- <li class="page-item"><a class="page-link" href="#">2</a></li>
- <li class="page-item"><a class="page-link" href="#">3</a></li>
- <li class="page-item"><a class="page-link" href="#">3</a></li>
- <li class="page-item"><span class="more-page">...</span></li>
- <li class="page-item">
- <a class="page-link" href="#" aria-label="Next">
- <span aria-hidden="true"></span>
- </a>
- </li>
- </ul>
- </nav>
- </div>
- -->
- </section>
- </div>
- </div>
- </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>
- @endpush
- @push('scripts')
- <script>
- $(document).ready(function() {
- loadDataTable();
- } );
- Livewire.on('load-data-table', () => {
- setTimeout(function() {loadDataTable()}, 100);
- });
- Livewire.on('destroy-data-table', () => {
- $('#tablesaw-350').DataTable().destroy();
- });
- function destroyDataTable()
- {
- $('#tablesaw-350').DataTable().destroy();
- }
- function loadDataTable(){
- $('#tablesaw-350').DataTable({
- thead: {
- 'th': {'background-color': 'blue'}
- },
- layout: {
- topStart: {
- buttons: [{ extend: 'csv', text: 'Esporta' }, 'excel', 'pdf', { extend: 'print', text: 'Stampa' }]
- }
- },
- 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
|