|
@@ -151,8 +151,17 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-4">
|
|
<div class="col-md-4">
|
|
|
- <span class="title-detail">Dal: <span class="title-detail_date">{{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}}</span></span></small><br>
|
|
|
|
|
- <span class="title-detail">Al: <span class="title-detail_date">{{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}}</span></span></small><br>
|
|
|
|
|
|
|
+ @php
|
|
|
|
|
+ $aMo = json_decode($member_course->months);
|
|
|
|
|
+ if (sizeof($aMo) == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sizeof($aMo) > 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m) . " - " . $this->getMonth($aMo[sizeof($aMo) - 1]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ @endphp
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-4">
|
|
<div class="col-md-4">
|
|
|
<span class="title-detail">
|
|
<span class="title-detail">
|
|
@@ -160,7 +169,10 @@
|
|
|
@if($xx > 0)
|
|
@if($xx > 0)
|
|
|
<br>
|
|
<br>
|
|
|
@endif
|
|
@endif
|
|
|
- {{$x->day}} : {{$x->from}} - {{$x->to}}
|
|
|
|
|
|
|
+ @foreach($x->day as $d)
|
|
|
|
|
+ {{$d}}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ h {{$x->from}} - {{$x->to}}
|
|
|
@endforeach
|
|
@endforeach
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -209,6 +221,34 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- filter item -->
|
|
<!-- filter item -->
|
|
|
|
|
|
|
|
|
|
+ <div class="filter--item">
|
|
|
|
|
+ <span class="filter--item_title">Stato tesseramento</span>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="filter--item_formElement row">
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <div class="form-check form-check-inline align-items-center">
|
|
|
|
|
+ <input class="form-check-input " type="radio" name="chkStatus" checked value="-1">
|
|
|
|
|
+ <label class="form-check-label ms-2" >Tutti</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-check form-check-inline align-items-center">
|
|
|
|
|
+ <input class="form-check-input " type="radio" name="chkStatus" value="2">
|
|
|
|
|
+ <label class="form-check-label ms-2" >Attivo</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <div class="form-check form-check-inline align-items-center">
|
|
|
|
|
+ <input class="form-check-input " type="radio" name="chkStatus" value="1">
|
|
|
|
|
+ <label class="form-check-label ms-2" >Sospeso</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="form-check form-check-inline align-items-center">
|
|
|
|
|
+ <input class="form-check-input " type="radio" name="chkStatus" value="0">
|
|
|
|
|
+ <label class="form-check-label ms-2" >Non tesserato</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="filter--item">
|
|
<div class="filter--item">
|
|
|
<span class="filter--item_title">Certificato Medico</span>
|
|
<span class="filter--item_title">Certificato Medico</span>
|
|
|
|
|
|
|
@@ -238,6 +278,21 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- filter item -->
|
|
<!-- filter item -->
|
|
|
|
|
|
|
|
|
|
+ <div class="filter--item">
|
|
|
|
|
+ <span class="filter--item_title">Età (anni)</span>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="filter--item_formElement row">
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <label class="form-check-label ms-2" >Da</label>
|
|
|
|
|
+ <input class="form-control " type="number" style="color:white" name="txtFromYear">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <label class="form-check-label ms-2" >A</label>
|
|
|
|
|
+ <input class="form-control " type="number" style="color:white" name="txtToYear">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="filter--item">
|
|
<div class="filter--item">
|
|
|
<span class="filter--item_title">Gruppo di Appartenenza</span>
|
|
<span class="filter--item_title">Gruppo di Appartenenza</span>
|
|
|
|
|
|
|
@@ -275,7 +330,7 @@
|
|
|
<header id="title--section" class="d-flex align-items-center justify-content-between">
|
|
<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">
|
|
<div class="title--section_name d-flex align-items-center justify-content-between">
|
|
|
<i class="ico--ui title_section utenti me-2"></i>
|
|
<i class="ico--ui title_section utenti me-2"></i>
|
|
|
- <h2 class="primary">@if(!$add && !$update)Elenco Utenti @else Inserimento/modifica utente @endif</h2>
|
|
|
|
|
|
|
+ <h2 class="primary">@if(!$add && !$update)Utenti @else Inserimento/modifica utente @endif</h2>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@if(!$add && !$update)
|
|
@if(!$add && !$update)
|
|
@@ -321,10 +376,10 @@
|
|
|
<section id="resume-table">
|
|
<section id="resume-table">
|
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
|
|
|
|
|
|
- <table class="table tablesaw tablesaw-stack" data-tablesaw="" id="tablesaw-350">
|
|
|
|
|
|
|
+ <table class="table tablesaw tablesaw-stack" id="tablesaw-350">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <!--<th scope="col"><label><input class="table-check" type="checkbox" data-tablesaw-checkall=""></th>-->
|
|
|
|
|
|
|
+ <!--<th scope="col">#</th>-->
|
|
|
<th scope="col">Codice</th>
|
|
<th scope="col">Codice</th>
|
|
|
<th scope="col">Cognome</th>
|
|
<th scope="col">Cognome</th>
|
|
|
<th scope="col">Nome</th>
|
|
<th scope="col">Nome</th>
|
|
@@ -439,16 +494,16 @@
|
|
|
<div id="card--nuovoUtente">
|
|
<div id="card--nuovoUtente">
|
|
|
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
|
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
|
|
<li class="nav-item" role="presentation">
|
|
<li class="nav-item" role="presentation">
|
|
|
- <button wire:ignore.self class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="true">INFO GENERICHE</button>
|
|
|
|
|
|
|
+ <button wire:ignore.self class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="true">DATI PERSONALI</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="nav-item" role="presentation">
|
|
<li class="nav-item" role="presentation">
|
|
|
<button wire:ignore.self class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile-tab-pane" type="button" role="tab" aria-controls="profile-tab-pane" aria-selected="false">TESSERAMENTO</button>
|
|
<button wire:ignore.self class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile-tab-pane" type="button" role="tab" aria-controls="profile-tab-pane" aria-selected="false">TESSERAMENTO</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="nav-item" role="presentation">
|
|
<li class="nav-item" role="presentation">
|
|
|
- <button wire:ignore.self class="nav-link" id="contact-tab" data-bs-toggle="tab" data-bs-target="#contact-tab-pane" type="button" role="tab" aria-controls="contact-tab-pane" aria-selected="false">GRUPPI DI APPARTENENZA</button>
|
|
|
|
|
|
|
+ <button wire:ignore.self class="nav-link" id="course-tab" data-bs-toggle="tab" data-bs-target="#course-tab-pane" type="button" role="tab" aria-controls="course-tab-pane" aria-selected="false">CORSI</button>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="nav-item" role="presentation">
|
|
<li class="nav-item" role="presentation">
|
|
|
- <button wire:ignore.self class="nav-link" id="course-tab" data-bs-toggle="tab" data-bs-target="#course-tab-pane" type="button" role="tab" aria-controls="course-tab-pane" aria-selected="false">CORSI</button>
|
|
|
|
|
|
|
+ <button wire:ignore.self class="nav-link" id="contact-tab" data-bs-toggle="tab" data-bs-target="#contact-tab-pane" type="button" role="tab" aria-controls="contact-tab-pane" aria-selected="false">GRUPPI DI APPARTENENZA</button>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
<div class="tab-content card--ui card--ui_maxwidth" id="myTabContent">
|
|
<div class="tab-content card--ui card--ui_maxwidth" id="myTabContent">
|
|
@@ -513,57 +568,83 @@
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
<label for="inputDate" class="form-label">Data di nascita {!!$age != '' ? ' <b>(' . $age . ')</b>' : ''!!}{!!$under18 ? '<span style="color:red;font-weight:bold"> MINORENNE</span>' : ''!!}</label>
|
|
<label for="inputDate" class="form-label">Data di nascita {!!$age != '' ? ' <b>(' . $age . ')</b>' : ''!!}{!!$under18 ? '<span style="color:red;font-weight:bold"> MINORENNE</span>' : ''!!}</label>
|
|
|
<div class="input-group mb-3">
|
|
<div class="input-group mb-3">
|
|
|
- <input class="form-control" type="date" id="birth_date" placeholder="Data di nascita" wire:model="birth_date">
|
|
|
|
|
|
|
+ <input class="form-control @error('birth_date') is-invalid @enderror" type="date" id="birth_date" placeholder="Data di nascita" wire:model="birth_date">
|
|
|
<!--<input id="inputDate" type="text" class="form-control" aria-label="Recipient's username" aria-describedby="button-addon2">-->
|
|
<!--<input id="inputDate" type="text" class="form-control" aria-label="Recipient's username" aria-describedby="button-addon2">-->
|
|
|
<!--<button class="btn btn-outline-secondary" type="button" id="button-addon2">Date</button>-->
|
|
<!--<button class="btn btn-outline-secondary" type="button" id="button-addon2">Date</button>-->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="birth_nation_id" class="form-label">Nazione di Nascita</label>
|
|
|
|
|
+ <select id="birth_nation_id" class="form-select nationBirthClass" aria-label="Nazione di nascita" wire:model="birth_nation_id">
|
|
|
|
|
+ <option value="{{$birth_nation_id}}">{{$this->getNation($birth_nation_id)}}
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @if($isBirthItaly)
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="birth_province_id" class="form-label">Provincia di Nascita</label>
|
|
|
|
|
+ <select id="birth_province_id" class="form-select provinceBirthClass" aria-label="Provincia di nascita" wire:model="birth_province_id">
|
|
|
|
|
+ <option value="{{$birth_province_id}}">{{$this->getProvince($birth_province_id)}}
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="birth_city_id" class="form-label">Comune di Nascita</label>
|
|
|
|
|
+ <select id="birth_city_id" class="form-select cityBirthClass" aria-label="Comune di nascita" wire:model="birth_city_id" >
|
|
|
|
|
+ <option value="{{$birth_city_id}}">{{$this->getCity($birth_city_id)}}
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @else
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="birth_place" class="form-label">Paese di nascita</label>
|
|
|
|
|
+ <input class="form-control " type="text" id="birth_place" placeholder="Paese di nascita" wire:model="birth_place">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
|
|
+
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="fiscal_code" class="form-label">Codice fiscale (<a wire:click="getFiscalCode()" href="#" style="font-size:18px;color: #006099;font-weight: bold;">calcola</a>)</label>
|
|
|
|
|
+ <input class="form-control" type="text" id="fiscal_code" placeholder="Codice fiscale" wire:model="fiscal_code" maxlength="16">
|
|
|
|
|
+ @if($this->error_fc)
|
|
|
|
|
+ <span style="color:red;font-size:12px">Dati mancanti</span>
|
|
|
|
|
+ @endif
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
@if($under18)
|
|
@if($under18)
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_name" class="form-label">Nome genitore 1</label>
|
|
|
|
|
|
|
+ <label for="father_name" class="form-label"><b>Genitore 1</b></label>
|
|
|
<input class="form-control" type="text" id="father_name" placeholder="Nome genitore 1" wire:model="father_name">
|
|
<input class="form-control" type="text" id="father_name" placeholder="Nome genitore 1" wire:model="father_name">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_name" class="form-label">Nome genitore 2</label>
|
|
|
|
|
|
|
+ <label for="mother_name" class="form-label"><b>Genitore 2</b></label>
|
|
|
<input class="form-control " type="text" id="mother_name" placeholder="Nome genitore 2" wire:model="mother_name">
|
|
<input class="form-control " type="text" id="mother_name" placeholder="Nome genitore 2" wire:model="mother_name">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_email" class="form-label">Email genitore 1</label>
|
|
|
|
|
<input class="form-control" type="text" id="father_email" placeholder="Email genitore 1" wire:model="father_email">
|
|
<input class="form-control" type="text" id="father_email" placeholder="Email genitore 1" wire:model="father_email">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_email" class="form-label">Email genitore 2</label>
|
|
|
|
|
<input class="form-control " type="text" id="mother_email" placeholder="Email genitore 2" wire:model="mother_email">
|
|
<input class="form-control " type="text" id="mother_email" placeholder="Email genitore 2" wire:model="mother_email">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_phone" class="form-label">Telefono genitore 1</label>
|
|
|
|
|
<input class="form-control" type="text" id="father_phone" placeholder="Telefono genitore 1" wire:model="father_phone">
|
|
<input class="form-control" type="text" id="father_phone" placeholder="Telefono genitore 1" wire:model="father_phone">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_phone" class="form-label">Telefono genitore 2</label>
|
|
|
|
|
<input class="form-control " type="text" id="mother_phone" placeholder="Telefono genitore 2" wire:model="mother_phone">
|
|
<input class="form-control " type="text" id="mother_phone" placeholder="Telefono genitore 2" wire:model="mother_phone">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_fiscal_code" class="form-label">Codice fiscale genitore 1</label>
|
|
|
|
|
<input class="form-control" type="text" id="father_fiscal_code" placeholder="Codice fiscale genitore 1" wire:model="father_fiscal_code" maxlength="16">
|
|
<input class="form-control" type="text" id="father_fiscal_code" placeholder="Codice fiscale genitore 1" wire:model="father_fiscal_code" maxlength="16">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_fiscal_code" class="form-label">Codice fiscale genitore 2</label>
|
|
|
|
|
<input class="form-control " type="text" id="mother_fiscal_code" placeholder="Codice fiscale genitore 2" wire:model="mother_fiscal_code" maxlength="16">
|
|
<input class="form-control " type="text" id="mother_fiscal_code" placeholder="Codice fiscale genitore 2" wire:model="mother_fiscal_code" maxlength="16">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_doc_number" class="form-label">Numero documento genitore 1</label>
|
|
|
|
|
<input class="form-control" type="text" id="father_doc_number" placeholder="Numero documento genitore 1" wire:model="father_doc_number">
|
|
<input class="form-control" type="text" id="father_doc_number" placeholder="Numero documento genitore 1" wire:model="father_doc_number">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_doc_number" class="form-label">Numero documento genitore 2</label>
|
|
|
|
|
<input class="form-control " type="text" id="mother_doc_number" placeholder="Numero documento genitore 2" wire:model="mother_doc_number">
|
|
<input class="form-control " type="text" id="mother_doc_number" placeholder="Numero documento genitore 2" wire:model="mother_doc_number">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="father_doc_type" class="form-label">Tipo documento genitore 1</label>
|
|
|
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="father_doc_type">
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="father_doc_type">
|
|
|
- <option value=""></option>
|
|
|
|
|
|
|
+ <option value="">Seleziona il tipo documento</option>
|
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
|
<option value="Passaporto">Passaporto</option>
|
|
<option value="Passaporto">Passaporto</option>
|
|
|
<option value="Patente">Patente</option>
|
|
<option value="Patente">Patente</option>
|
|
@@ -571,9 +652,8 @@
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="mother_doc_type" class="form-label">Tipo documento genitore 2</label>
|
|
|
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="mother_doc_type">
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="mother_doc_type">
|
|
|
- <option value=""></option>
|
|
|
|
|
|
|
+ <option value="">Seleziona il tipo documento</option>
|
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
|
<option value="Passaporto">Passaporto</option>
|
|
<option value="Passaporto">Passaporto</option>
|
|
|
<option value="Patente">Patente</option>
|
|
<option value="Patente">Patente</option>
|
|
@@ -582,39 +662,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
@endif
|
|
|
- <div class="col-md-12">
|
|
|
|
|
- <label for="birth_nation_id" class="form-label">Nazione di Nascita</label>
|
|
|
|
|
- <select id="birth_nation_id" class="form-select nationBirthClass" aria-label="Nazione di nascita" wire:model="birth_nation_id">
|
|
|
|
|
- <option value="{{$birth_nation_id}}">{{$this->getNation($birth_nation_id)}}
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- @if($isBirthItaly)
|
|
|
|
|
- <div class="col-md-12">
|
|
|
|
|
- <label for="birth_province_id" class="form-label">Provincia di Nascita</label>
|
|
|
|
|
- <select id="birth_province_id" class="form-select provinceBirthClass" aria-label="Provincia di nascita" wire:model="birth_province_id">
|
|
|
|
|
- <option value="{{$birth_province_id}}">{{$this->getProvince($birth_province_id)}}
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-md-12">
|
|
|
|
|
- <label for="birth_city_id" class="form-label">Comune di Nascita</label>
|
|
|
|
|
- <select id="birth_city_id" class="form-select cityBirthClass" aria-label="Comune di nascita" wire:model="birth_city_id" >
|
|
|
|
|
- <option value="{{$birth_city_id}}">{{$this->getCity($birth_city_id)}}
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- @else
|
|
|
|
|
- <div class="col-md-6">
|
|
|
|
|
- <label for="birth_place" class="form-label">Paese di nascita</label>
|
|
|
|
|
- <input class="form-control " type="text" id="birth_place" placeholder="Paese di nascita" wire:model="birth_place">
|
|
|
|
|
- </div>
|
|
|
|
|
- @endif
|
|
|
|
|
-
|
|
|
|
|
- <div class="col-md-12">
|
|
|
|
|
- <label for="fiscal_code" class="form-label">Codice fiscale (<a wire:click="getFiscalCode()" href="#" style="font-size:18px;color: #006099;font-weight: bold;">calcola</a>)</label>
|
|
|
|
|
- <input class="form-control" type="text" id="fiscal_code" placeholder="Codice fiscale" wire:model="fiscal_code" maxlength="16">
|
|
|
|
|
- @if($this->error_fc)
|
|
|
|
|
- <span style="color:red;font-size:12px">Dati mancanti</span>
|
|
|
|
|
- @endif
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
@if($dataId > 0)
|
|
@if($dataId > 0)
|
|
|
<span class="title-form primary d-block w-100">Stato</span>
|
|
<span class="title-form primary d-block w-100">Stato</span>
|
|
@@ -688,7 +735,7 @@
|
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
|
<label for="document_type" class="form-label">Tipo</label>
|
|
<label for="document_type" class="form-label">Tipo</label>
|
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="document_type">
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="document_type">
|
|
|
- <option value=""></option>
|
|
|
|
|
|
|
+ <option value="">--Seleziona--</option>
|
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
<option value="Carta di identità">Carta di identità</option>
|
|
|
<option value="Passaporto">Passaporto</option>
|
|
<option value="Passaporto">Passaporto</option>
|
|
|
<option value="Patente">Patente</option>
|
|
<option value="Patente">Patente</option>
|
|
@@ -702,7 +749,7 @@
|
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
|
<label for="document_from" class="form-label">Rilasciato da</label>
|
|
<label for="document_from" class="form-label">Rilasciato da</label>
|
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="document_from">
|
|
<select class="form-select form-select-lg me-1" aria-label=".form-select-lg example" wire:model="document_from">
|
|
|
- <option value=""></option>
|
|
|
|
|
|
|
+ <option value="">--Seleziona--</option>
|
|
|
<option value="Comune">Comune</option>
|
|
<option value="Comune">Comune</option>
|
|
|
<option value="Motorizzazione">Motorizzazione</option>
|
|
<option value="Motorizzazione">Motorizzazione</option>
|
|
|
<option value="Ministero degli interni">Ministero degli interni</option>
|
|
<option value="Ministero degli interni">Ministero degli interni</option>
|
|
@@ -813,7 +860,7 @@
|
|
|
@if($dataId > 0)
|
|
@if($dataId > 0)
|
|
|
|
|
|
|
|
@if(!$addCard && !$updateCard)
|
|
@if(!$addCard && !$updateCard)
|
|
|
- <table class="table tablesaw tablesaw-stack" data-tablesaw="" id="tablesaw-350-1">
|
|
|
|
|
|
|
+ <table class="table tablesaw tablesaw-stack" id="tablesaw-350-1">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th scope="col">Carta</th>
|
|
<th scope="col">Carta</th>
|
|
@@ -965,39 +1012,87 @@
|
|
|
<div class="tab-pane fade tasseramento-tab" id="course-tab-pane" role="tabpanel" aria-labelledby="course-tab" tabindex="0" wire:ignore.self>
|
|
<div class="tab-pane fade tasseramento-tab" id="course-tab-pane" role="tabpanel" aria-labelledby="course-tab" tabindex="0" wire:ignore.self>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@if($dataId > 0)
|
|
@if($dataId > 0)
|
|
|
|
|
|
|
|
@if(!$addCourse && !$updateCourse)
|
|
@if(!$addCourse && !$updateCourse)
|
|
|
- <table class="table tablesaw tablesaw-stack" data-tablesaw="" id="tablesaw-350-2">
|
|
|
|
|
- <thead>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="col">Corso</th>
|
|
|
|
|
- <th scope="col">Dal</th>
|
|
|
|
|
- <th scope="col">Al</th>
|
|
|
|
|
- <th scope="col">Quando</th>
|
|
|
|
|
- <th scope="col">...</th>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </thead>
|
|
|
|
|
|
|
+ <table class="table tablesaw tablesaw-stack" id="tablesaw-350-2" style="min-width:800px">
|
|
|
<tbody id="checkall-target">
|
|
<tbody id="checkall-target">
|
|
|
@foreach($member_courses as $member_course)
|
|
@foreach($member_courses as $member_course)
|
|
|
<tr>
|
|
<tr>
|
|
|
- <td>{{$member_course->course->getTree()}}</td>
|
|
|
|
|
- <td>{{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}}</td>
|
|
|
|
|
- <td>{{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}}</td>
|
|
|
|
|
- <td>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <td style="width:10%">
|
|
|
|
|
+ <b>{{$member_course->course->name}}</b><br>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="width:10%">
|
|
|
|
|
+ {{$member_course->course->type->name}}<br>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="width:10%">
|
|
|
|
|
+ {{$member_course->course->level->name}}<br>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td style="width:20%">
|
|
|
@foreach(json_decode($member_course->when) as $xx => $x)
|
|
@foreach(json_decode($member_course->when) as $xx => $x)
|
|
|
@if($xx > 0)
|
|
@if($xx > 0)
|
|
|
<br>
|
|
<br>
|
|
|
@endif
|
|
@endif
|
|
|
- {{$x->day}} : {{$x->from}} - {{$x->to}}
|
|
|
|
|
|
|
+ @foreach($x->day as $d)
|
|
|
|
|
+ {{$d}}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ h {{$x->from}} - {{$x->to}}
|
|
|
@endforeach
|
|
@endforeach
|
|
|
</td>
|
|
</td>
|
|
|
- <td>
|
|
|
|
|
- <button type="button" class="btn btn-outline-primary btn-sm" wire:click="editCourse({{ $member_course->id }})">Modifica</button>
|
|
|
|
|
|
|
+ <td style="width:20%">
|
|
|
|
|
+ @php
|
|
|
|
|
+ $aMo = json_decode($member_course->months);
|
|
|
|
|
+ if (sizeof($aMo) == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sizeof($aMo) > 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m) . " - " . $this->getMonth($aMo[sizeof($aMo) - 1]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ @endphp
|
|
|
|
|
+ </td>
|
|
|
|
|
+ @if(false)
|
|
|
|
|
+ <td style="width:10%">Iscrizione:<br><b>{{$member_course->status == 1 ? 'Pagata' : ($member_course->status == 2 ? 'Da pagare' : 'Sospesa')}}</b></td>
|
|
|
|
|
+ @endif
|
|
|
|
|
+ <td style="text-align:right;width:30%">
|
|
|
|
|
+ <button type="button" class="btn btn-outline-primary btn-sm" wire:click="showHideCourse({{ $member_course->id }})">Dettaglio</button>
|
|
|
|
|
+ <button type="button" class="btn btn-outline-primary btn-sm" wire:click="editCourse({{ $member_course->id }})">Modifica</button>
|
|
|
<button type="button" class="btn btn-outline-danger btn-sm" onclick="confirm('Sei sicuro?') || event.stopImmediatePropagation()" wire:click="deleteCourse({{ $member_course->id }})">Elimina</button>
|
|
<button type="button" class="btn btn-outline-danger btn-sm" onclick="confirm('Sei sicuro?') || event.stopImmediatePropagation()" wire:click="deleteCourse({{ $member_course->id }})">Elimina</button>
|
|
|
</td>
|
|
</td>
|
|
|
|
|
+
|
|
|
</tr>
|
|
</tr>
|
|
|
|
|
+ @if(in_array($member_course->id, $showCourse))
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td colspan="6">
|
|
|
|
|
+ <a class="{{$this->getSubscriptionStatus($member_course->subscribed)}}" wire:click="setCreateSubscription({{$member_course->subscribed}})" style="float:none; width:150px;">Iscrizione</a><br>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(1, $member_course->months)}}" wire:click="setPayMonth(1, '{{ $member_course->months }}')">Gen</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(2, $member_course->months)}}" wire:click="setPayMonth(2, '{{ $member_course->months }}')">Feb</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(3, $member_course->months)}}" wire:click="setPayMonth(3, '{{ $member_course->months }}')">Mar</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(4, $member_course->months)}}" wire:click="setPayMonth(4, '{{ $member_course->months }}')">Apr</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(5, $member_course->months)}}" wire:click="setPayMonth(5, '{{ $member_course->months }}')">Mag</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(6, $member_course->months)}}" wire:click="setPayMonth(6, '{{ $member_course->months }}')">Giu</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(7, $member_course->months)}}" wire:click="setPayMonth(7, '{{ $member_course->months }}')">Lug</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(8, $member_course->months)}}" wire:click="setPayMonth(8, '{{ $member_course->months }}')">Ago</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(9, $member_course->months)}}" wire:click="setPayMonth(9, '{{ $member_course->months }}')">Set</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(10, $member_course->months)}}" wire:click="setPayMonth(10, '{{ $member_course->months }}')">Ott</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(11, $member_course->months)}}" wire:click="setPayMonth(11, '{{ $member_course->months }}')">Nov</a>
|
|
|
|
|
+ <a class="{{$this->getMonthStatus(12, $member_course->months)}}" wire:click="setPayMonth(12, '{{ $member_course->months }}')">Dic</a>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td colspan="6">
|
|
|
|
|
+ @if(sizeof($payMonths) > 0 || $createSubscription)
|
|
|
|
|
+ <button class="btn--ui primary" style="color:white" wire:click="newPayment({{$member_course}})">Nuova entrata</button>
|
|
|
|
|
+ <button class="btn--ui primary" style="color:white" wire:click="block({{$member_course}})">Sospendi</button>
|
|
|
|
|
+ @endif<br>
|
|
|
|
|
+ <br><b>Note</b><br>
|
|
|
|
|
+ {{$member_course->notes}}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ @endif
|
|
|
|
|
+
|
|
|
@endforeach
|
|
@endforeach
|
|
|
|
|
|
|
|
</tbody>
|
|
</tbody>
|
|
@@ -1008,48 +1103,92 @@
|
|
|
<div class="form--wrapper">
|
|
<div class="form--wrapper">
|
|
|
<form class="form--utente">
|
|
<form class="form--utente">
|
|
|
<div class="row ">
|
|
<div class="row ">
|
|
|
- <div class="col-md-12">
|
|
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
<label for="course_course_id" class="form-label">Corso</label>
|
|
<label for="course_course_id" class="form-label">Corso</label>
|
|
|
- @livewire('courses', ['course_id' => $course_course_id])
|
|
|
|
|
- @if(false)
|
|
|
|
|
- <select id="course_course_id" class="form-select coursesClass @error('course_course_id') is-invalid @enderror" aria-label="Corso" wire:model="course_course_id">
|
|
|
|
|
- <option value="">--Seleziona--
|
|
|
|
|
- @foreach($courses as $course)
|
|
|
|
|
- <option value="{{$course["id"]}}">{{$course["name"]}}
|
|
|
|
|
- @endforeach
|
|
|
|
|
- </select>
|
|
|
|
|
- @endif
|
|
|
|
|
|
|
+ <select id="course_course_id" class="form-select @error('course_course_id') is-invalid @enderror" aria-label="Corso" wire:model="course_course_id" >
|
|
|
|
|
+ <option value="">
|
|
|
|
|
+ @foreach($courses as $course)
|
|
|
|
|
+ <option value="{{$course["id"]}}">{{$course["name"]}}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="course_course_subscription_id" class="form-label">Abbonamento</label>
|
|
|
|
|
+ <select id="course_course_subscription_id" class="form-select @error('course_course_subscription_id') is-invalid @enderror" aria-label="Abbonamento" wire:model="course_course_subscription_id">
|
|
|
|
|
+ <option value="">
|
|
|
|
|
+ @foreach($course_subscriptions as $t)
|
|
|
|
|
+ <option value="{{$t["id"]}}">{{$t["name"]}}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row ">
|
|
<div class="row ">
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="course_date_from" class="form-label">Dal</label>
|
|
|
|
|
- <input class="form-control" type="date" id="course_date_from" placeholder="Dal" wire:model="course_date_from">
|
|
|
|
|
|
|
+ <label for="course_price" class="form-label">Costo mensile</label>
|
|
|
|
|
+ <input class="form-control" type="text" id="course_price" placeholder="Costo mensile" wire:model="course_price" onkeyup="onlyNumberAmount(this)">
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
- <label for="course_date_to" class="form-label">Al</label>
|
|
|
|
|
- <input class="form-control" type="date" id="course_date_to" placeholder="Al" wire:model="course_date_to">
|
|
|
|
|
|
|
+ <label for="course_status" class="form-label">Stato iscrizione</label>
|
|
|
|
|
+ <select id="course_status" class="form-select @error('course_status') is-invalid @enderror" aria-label="Stato" wire:model="course_status">
|
|
|
|
|
+ <option value="">
|
|
|
|
|
+ <option value="1">Pagata
|
|
|
|
|
+ <option value="2">Da pagare
|
|
|
|
|
+ <option value="3">Sospesa
|
|
|
|
|
+ </select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- @foreach($course_when as $idW => $when)
|
|
|
|
|
|
|
+ <div class="row ">
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="duration" class="form-label">Durata del corso</label><br>
|
|
|
|
|
+ <a class="{{$this->checkMonth(1) ? 'selected' : 'notSelected'}}" wire:click="setMonth(1)">Gen</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(2) ? 'selected' : 'notSelected'}}" wire:click="setMonth(2)">Feb</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(3) ? 'selected' : 'notSelected'}}" wire:click="setMonth(3)">Mar</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(4) ? 'selected' : 'notSelected'}}" wire:click="setMonth(4)">Apr</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(5) ? 'selected' : 'notSelected'}}" wire:click="setMonth(5)">Mag</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(6) ? 'selected' : 'notSelected'}}" wire:click="setMonth(6)">Giu</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(7) ? 'selected' : 'notSelected'}}" wire:click="setMonth(7)">Lug</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(8) ? 'selected' : 'notSelected'}}" wire:click="setMonth(8)">Ago</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(9) ? 'selected' : 'notSelected'}}" wire:click="setMonth(9)">Set</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(10) ? 'selected' : 'notSelected'}}" wire:click="setMonth(10)">Ott</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(11) ? 'selected' : 'notSelected'}}" wire:click="setMonth(11)">Nov</a>
|
|
|
|
|
+ <a class="{{$this->checkMonth(12) ? 'selected' : 'notSelected'}}" wire:click="setMonth(12)">Dic</a>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="course_subscription_price" class="form-label">Costo iscrizione</label>
|
|
|
|
|
+ <input class="form-control" type="text" id="course_subscription_price" placeholder="Costo iscrizione" wire:model="course_subscription_price" onkeyup="onlyNumberAmount(this)">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @if(false)
|
|
|
<div class="row ">
|
|
<div class="row ">
|
|
|
- <div class="col-md-5">
|
|
|
|
|
- <label for="" class="form-label">Giorno</label>
|
|
|
|
|
- <select class="form-select" aria-label="Corso" wire:model="course_when.{{$idW}}.day">
|
|
|
|
|
- <option value="">
|
|
|
|
|
- <option value="lun">Lunedì
|
|
|
|
|
- <option value="mar">Martedì
|
|
|
|
|
- <option value="mer">Mercoledì
|
|
|
|
|
- <option value="gio">Giovedì
|
|
|
|
|
- <option value="ven">Venerdì
|
|
|
|
|
- <option value="sab">Sabato
|
|
|
|
|
- <option value="dom">Domenica
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="course_date_from" class="form-label">Dal</label>
|
|
|
|
|
+ <input class="form-control" type="date" id="course_date_from" placeholder="Dal" wire:model="course_date_from">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="course_date_to" class="form-label">Al</label>
|
|
|
|
|
+ <input class="form-control" type="date" id="course_date_to" placeholder="Al" wire:model="course_date_to">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
|
|
+ @foreach($course_when as $idW => $when)
|
|
|
|
|
+ <div class="row day" >
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="" class="form-label">Giorno</label><br>
|
|
|
|
|
+ <a class="{{in_array('lun', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'lun')">Lun</a>
|
|
|
|
|
+ <a class="{{in_array('mar', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'mar')">Mar</a>
|
|
|
|
|
+ <a class="{{in_array('mer', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'mer')">Mer</a>
|
|
|
|
|
+ <a class="{{in_array('gio', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'gio')">Gio</a>
|
|
|
|
|
+ <a class="{{in_array('ven', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'ven')">Ven</a>
|
|
|
|
|
+ <a class="{{in_array('sab', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'sab')">Sab</a>
|
|
|
|
|
+ <a class="{{in_array('dom', $course_when[$idW]["day"]) ? 'selected' : 'notSelected'}}" wire:click="setDay({{$idW}}, 'dom')">Dom</a>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-3">
|
|
<div class="col-md-3">
|
|
|
<label for="" class="form-label">Dalle</label>
|
|
<label for="" class="form-label">Dalle</label>
|
|
|
<select class="form-select" wire:model="course_when.{{$idW}}.from">
|
|
<select class="form-select" wire:model="course_when.{{$idW}}.from">
|
|
|
- <option value="">
|
|
|
|
|
|
|
+ <option value="">--Seleziona--
|
|
|
@for($c=6;$c<=23;$c++)
|
|
@for($c=6;$c<=23;$c++)
|
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00
|
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30
|
|
@@ -1059,7 +1198,7 @@
|
|
|
<div class="col-md-3">
|
|
<div class="col-md-3">
|
|
|
<label for="" class="form-label">Alle</label>
|
|
<label for="" class="form-label">Alle</label>
|
|
|
<select class="form-select" wire:model="course_when.{{$idW}}.to">
|
|
<select class="form-select" wire:model="course_when.{{$idW}}.to">
|
|
|
- <option value="">
|
|
|
|
|
|
|
+ <option value="">--Seleziona--
|
|
|
@for($c=6;$c<=23;$c++)
|
|
@for($c=6;$c<=23;$c++)
|
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:00
|
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30
|
|
<option value="{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30">{{str_pad($c, 2, "0", STR_PAD_LEFT)}}:30
|
|
@@ -1071,8 +1210,15 @@
|
|
|
<button class="btn--ui primary" wire:click.prevent="delRow({{$idW}})">-</button>
|
|
<button class="btn--ui primary" wire:click.prevent="delRow({{$idW}})">-</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- @endforeach<br>
|
|
|
|
|
- <button class="btn--ui primary" wire:click.prevent="addRow()">Aggiungi giorno</button>
|
|
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ <br>
|
|
|
|
|
+ <div class="row ">
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="course_date_from" class="form-label">Note</label>
|
|
|
|
|
+ <input class="form-control" type="text" id="course_note" placeholder="Note" wire:model="course_note">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <button class="btn--ui primary" style="float:right" wire:click.prevent="addRow()">+</button>
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -1219,8 +1365,17 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<span class="title-detail">
|
|
<span class="title-detail">
|
|
|
- Dal: <span class="title-detail_date">{{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}}</span>
|
|
|
|
|
- Al: <span class="title-detail_date">{{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}}</span>
|
|
|
|
|
|
|
+ @php
|
|
|
|
|
+ $aMo = json_decode($member_course->months);
|
|
|
|
|
+ if (sizeof($aMo) == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sizeof($aMo) > 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ print($this->getMonth($aMo[0]->m) . " - " . $this->getMonth($aMo[sizeof($aMo) - 1]->m));
|
|
|
|
|
+ }
|
|
|
|
|
+ @endphp
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -1229,7 +1384,10 @@
|
|
|
@if($xx > 0)
|
|
@if($xx > 0)
|
|
|
<br>
|
|
<br>
|
|
|
@endif
|
|
@endif
|
|
|
- {{$x->day}} : {{$x->from}} - {{$x->to}}
|
|
|
|
|
|
|
+ @foreach($x->day as $d)
|
|
|
|
|
+ {{$d}}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ {{$x->from}} - {{$x->to}}
|
|
|
@endforeach
|
|
@endforeach
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -1282,6 +1440,182 @@
|
|
|
{
|
|
{
|
|
|
width:100% !important;
|
|
width:100% !important;
|
|
|
}
|
|
}
|
|
|
|
|
+ a.notSelected
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #006099;
|
|
|
|
|
+ background-color: #d3dce1 !important;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.selected
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: #006099 !important;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ div.day
|
|
|
|
|
+ {
|
|
|
|
|
+ margin-top:20px;
|
|
|
|
|
+ color: #006099;
|
|
|
|
|
+ background-color: #ffffff !important;
|
|
|
|
|
+ padding: 20px;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: 2px solid #d3dce1;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.grey
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #006099;
|
|
|
|
|
+ background-color: #d3dce1 !important;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.blue
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: #006099 !important;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.yellow
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: #ffe238;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.orange
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: #FF7E38;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ a.green
|
|
|
|
|
+ {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ margin-right:10px;
|
|
|
|
|
+ float:left;
|
|
|
|
|
+ height: 2.5rem !important;
|
|
|
|
|
+ width:50px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ background-color: green;
|
|
|
|
|
+ padding: 0 1.25rem;
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-family: greycliff-cf, sans-serif;
|
|
|
|
|
+ border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-border-radius: 1.875rem !important;
|
|
|
|
|
+ -moz-border-radius: 1.875rem !important;
|
|
|
|
|
+ -webkit-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -moz-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ -o-transition: all 0.3s ease-in-out;
|
|
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|
|
|
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
|
|
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
|
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
@@ -1505,6 +1839,12 @@
|
|
|
}, 100)
|
|
}, 100)
|
|
|
@endif
|
|
@endif
|
|
|
|
|
|
|
|
|
|
+ function onlyNumberAmount(input) {
|
|
|
|
|
+ let v = input.value.replace(/\D+/g, '');
|
|
|
|
|
+ if (v.length > 14) v = v.slice(0, 14);
|
|
|
|
|
+ input.value = "€ " + v.replace(/(\d)(\d\d)$/, "$1,$2").replace(/(^\d{1,3}|\d{3})(?=(?:\d{3})+(?:,|$))/g, '$1.');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
@endpush
|
|
@endpush
|
|
@@ -1512,11 +1852,20 @@
|
|
|
@push('scripts')
|
|
@push('scripts')
|
|
|
<link href="/css/datatables.css" rel="stylesheet" />
|
|
<link href="/css/datatables.css" rel="stylesheet" />
|
|
|
<script src="/assets/js/datatables.js"></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
|
|
@endpush
|
|
|
|
|
|
|
|
@push('scripts')
|
|
@push('scripts')
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
|
|
|
|
+ function showData(id)
|
|
|
|
|
+ {
|
|
|
|
|
+ @this.showDetailF(id);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
function editData(id)
|
|
function editData(id)
|
|
|
{
|
|
{
|
|
|
@this.edit(id);
|
|
@this.edit(id);
|
|
@@ -1577,13 +1926,35 @@
|
|
|
var chkCertificateScadenza = $(".chkCertificateScadenza").is(':checked') ? "1" : "";
|
|
var chkCertificateScadenza = $(".chkCertificateScadenza").is(':checked') ? "1" : "";
|
|
|
var chkCertificateScaduti = $(".chkCertificateScaduti").is(':checked') ? "1" : "";
|
|
var chkCertificateScaduti = $(".chkCertificateScaduti").is(':checked') ? "1" : "";
|
|
|
|
|
|
|
|
|
|
+ var status = $('input[name="chkStatus"]:checked').val();
|
|
|
|
|
+
|
|
|
|
|
+ var fromYear = $('input[name="txtFromYear"]').val();
|
|
|
|
|
+ var toYear = $('input[name="txtToYear"]').val();
|
|
|
|
|
+
|
|
|
$('#tablesaw-350').DataTable({
|
|
$('#tablesaw-350').DataTable({
|
|
|
//destroy: true,
|
|
//destroy: true,
|
|
|
- ajax: '/get_members?cards=' + cards + "&categories=" + categories + "&chkCertificateNormal=" + chkCertificateNormal + "&chkCertificateAgonistico=" + chkCertificateAgonistico + "&chkCertificateScadenza=" + chkCertificateScadenza + "&chkCertificateScaduti=" + chkCertificateScaduti,
|
|
|
|
|
|
|
+ ajax: '/get_members?cards=' + cards + "&categories=" + categories + "&chkCertificateNormal=" + chkCertificateNormal + "&chkCertificateAgonistico=" + chkCertificateAgonistico + "&chkCertificateScadenza=" + chkCertificateScadenza + "&chkCertificateScaduti=" + chkCertificateScaduti + "&status=" + status + "&fromYear=" + fromYear + "&toYear=" + toYear,
|
|
|
columns: [
|
|
columns: [
|
|
|
{ data: 'id' },
|
|
{ data: 'id' },
|
|
|
- { data: "first_name" },
|
|
|
|
|
- { data: "last_name"},
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ data: "last_name",
|
|
|
|
|
+ render: function (data){
|
|
|
|
|
+ // Split class and text
|
|
|
|
|
+ const d = data.split("|");
|
|
|
|
|
+ var ret = '<a href="#" onclick="showData(' + d[1] + ')">' + d[0] + '</a>';
|
|
|
|
|
+ return ret;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ data: "first_name",
|
|
|
|
|
+ render: function (data){
|
|
|
|
|
+ // Split class and text
|
|
|
|
|
+ const d = data.split("|");
|
|
|
|
|
+ var ret = '<a href="#" onclick="showData(' + d[1] + ')">' + d[0] + '</a>';
|
|
|
|
|
+ return ret;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
{ data: "phone"},
|
|
{ data: "phone"},
|
|
|
{ data: "age"},
|
|
{ data: "age"},
|
|
|
{
|
|
{
|
|
@@ -1650,13 +2021,36 @@
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
fixedHeader: false,
|
|
fixedHeader: false,
|
|
|
- order: [[1, 'asc'], [2, 'asc']],
|
|
|
|
|
|
|
+ order: [[2, 'asc'], [3, 'asc']],
|
|
|
thead: {
|
|
thead: {
|
|
|
'th': {'background-color': 'blue'}
|
|
'th': {'background-color': 'blue'}
|
|
|
},
|
|
},
|
|
|
layout: {
|
|
layout: {
|
|
|
topStart: {
|
|
topStart: {
|
|
|
- buttons: [{ extend: 'csv', text: 'Esporta' }, 'excel', 'pdf', { extend: 'print', text: 'Stampa' }]
|
|
|
|
|
|
|
+ buttons: [
|
|
|
|
|
+ {
|
|
|
|
|
+ extend: 'excelHtml5',
|
|
|
|
|
+ title: 'Utenti',
|
|
|
|
|
+ exportOptions: {
|
|
|
|
|
+ columns: ":not(':last')"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ extend: 'pdfHtml5',
|
|
|
|
|
+ title: 'Utenti',
|
|
|
|
|
+ exportOptions: {
|
|
|
|
|
+ columns: ":not(':last')"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ extend: 'print',
|
|
|
|
|
+ text: 'Stampa',
|
|
|
|
|
+ title: 'Utenti',
|
|
|
|
|
+ exportOptions: {
|
|
|
|
|
+ columns: ":not(':last')"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
pagingType: 'numbers',
|
|
pagingType: 'numbers',
|