@if($showDetail)

@if ($currentMember->image != '') @endif
Borsellino
Borsellino MAD:
{{formatPrice($currentMember->getMoney())}}
ricarica


Certificato
@if(sizeof($currentMember->certificates) > 0) @php $cert = $currentMember->certificates[0] @endphp
  • {{$cert->type == 'A' ? 'Agonistico' : 'Non agonistico'}}
    Scadenza: {{$cert->expire_date ? date("d/m/Y", strtotime($cert->expire_date)) : ''}}
    @if($cert->expire_date < date("Y-m-d")) scaduto @endif @if($cert->expire_date . " 23:59:59" >= date("Y-m-d") && $cert->expire_date < date("Y-m-d", strtotime("+1 month"))) in scadenza @endif @if($cert->expire_date . " 23:59:59" >= date("Y-m-d", strtotime("+1 month"))) valido @endif
@endif
Tesseramento
@if(sizeof($currentMember->cards) > 0) @foreach($currentMember->cards as $card) @php // $card = $currentMember->cards[0]; $active = 'active'; if ($card->expire_date != '' && $card->expire_date < date("Y-m-d 23:59:59")) { $active = 'suspended'; } @endphp @if($active != 'suspended')
  • {{$card->card->name}}
    Scadenza: {{$card->expire_date ? date("d/m/Y", strtotime($card->expire_date)) : ''}}
    {{$active == 'active' ? 'ATTIVA' : 'SCADUTA'}}
@endif @endforeach @endif
{{$currentMember->first_name}} {{$currentMember->last_name}} 0 ? ($currentStatus["status"] == 2 ? 'active' : 'due') : 'suspended'}}">{{$currentStatus["status"] > 0 ? ($currentStatus["status"] == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'}}
  • Tel. {{$currentMember->phone}}
  • Nato/a il {{$currentMember->birth_date ? date("d/m/Y", strtotime($currentMember->birth_date)) : ''}} ({{$currentMember->getAge()}} anni)
  • {{strtolower($currentMember->email)}}
  • Residenza
  • @if($currentMember->city_id > 0) {{$this->getCity($currentMember->city_id)}} @if($currentMember->province_id > 0) ( {{$this->getProvince($currentMember->province_id)}} ) - @endif @endif {{ $currentMember->zip_code }}
    {{$currentMember->address}}

Gruppi di appartenenza

@foreach($currentMember->categories as $member_category)

{{$member_category->category->getTree()}}

@endforeach

Corsi

@foreach($currentMember->courses as $member_course)

{{$member_course->course->getTree()}}

@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
@foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0) @endif @foreach($x->day as $d) {{$d}} @endforeach h {{$x->from}} - {{$x->to}} @endforeach
@endforeach
@else

@if(!$add && !$update)Utenti @else Inserimento/modifica utente @endif

@if(!$add && !$update) @endif
@if(!$add && !$update)
@if(false)
@if($showReset) @else @endif
@endif
@if(false) @foreach($records as $idx => $record) @endforeach @endif
Cognome Nome Telefono Età Anno Stato Certificato ...
{{ ($idx + 1) }} ID{{str_pad($record->id, 5, "0", STR_PAD_LEFT)}} {{$record->last_name}} {{$record->first_name}} @if($record->phone != '') {{$record->phone}} @endif {{$record->age > 0 ? $record->age : ''}} {{$record->state > 0 ? ($record->state == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'}} {{$record->status > 0 ? ($record->status == 2 ? 'Attivo' : 'Sospesa') : ''}} Scadenza tessera {{$record->status ? 'Scadenza : ' : ($record->date != '' ? 'Scaduto : ' : '')}} {{$record->date != '' ? date("d/m/Y", strtotime($record->date)) : ''}} @if($record->certificate != '') Scadenza certificato @if($record->certificate < date("Y-m-d")) Scaduto : @endif @if($record->certificate >= date("Y-m-d") && $record->certificate < date("Y-m-d", strtotime("+1 month"))) In scadenza : @endif @if($record->certificate >= date("Y-m-d", strtotime("+1 month"))) Scadenza : @endif {{$record->certificate != '' ? date("d/m/Y", strtotime($record->certificate)) : ''}} @endif
@else

@if (session()->has('success')) @endif @if (session()->has('error')) @endif

Anagrafica

Tesseramento

Corsi

Gruppi

@if($type == 'dati')
{!!$under18 ? ' MINORENNE' : ''!!}
@if($isBirthItaly)
@else
@endif
@if($this->error_fc) Dati mancanti @endif @error('fiscal_code')
{{ $message }}
@enderror
@error('image') {{ $message }} @enderror @if ($image) @endif @if ($image_old) @endif
Residenza
@if($isItaly)
@endif
Contatti
 
 
@if($dataId > 0) Stato
{{$active["status_text"]}}
@endif
Documento

@foreach ($document_files as $idx => $d) @endforeach
@if($under18)
Genitore 1

@foreach ($father_document_files as $idx => $d) @endforeach
Genitore 2

@foreach ($mother_document_files as $idx => $d) @endforeach
@endif
Certificato Medico @if($dataId > -1) @if(!$addCertificate && !$updateCertificate) @foreach($member_certificates as $member_certificate) @endforeach
Tipo Scadenza ...
{{$member_certificate->type == 'A' ? 'Agonistico' : 'Non agonistico'}} {{$member_certificate->expire_date ? date("d/m/Y", strtotime($member_certificate->expire_date)) : ''}} {!!$member_certificate->filename != '' ? 'Visualizza' : ''!!}
@else

Formati consentiti: .jpg, .pdf, .docx

{!!$certificate_filename_old != '' ? '
Visualizza' : ''!!}

@if($addCertificate) @endif @if($updateCertificate) @endif @endif @else @endif
@endif @if($type == 'tesseramento') @if($dataId > 0) @if(!$addCard && !$updateCard) @foreach($member_cards as $member_card) @endforeach
Carta Numero Scadenza ...
{{$member_card->card->name}} {{$member_card->number}} {{$member_card->expire_date ? date("d/m/Y", strtotime($member_card->expire_date)) : ''}}
@else
@if($card_discipline2_id > 0)
@endif

@if($addCard) @endif @if($updateCard) @endif
@endif @endif @endif @if($type == 'gruppi')
@livewire('categories') @if(false)
@endif {!!$groupMsg!!} @foreach($member_categories as $member_category)

{{$member_category->category->getTree()}}

@endforeach
@endif @if($type == 'corsi') @if($dataId > 0) @if(!$addCourse && !$updateCourse) @foreach($member_courses as $member_course) @if(false) @endif @if(in_array($member_course->id, $showCourse)) @endif @endforeach
{{$member_course->course->name}}
{{$member_course->course->type->name ?? ""}}
{{$member_course->course->level->name ?? ""}}
@foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach h {{$x->from}} - {{$x->to}} @endforeach
@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 Iscrizione:
{{$member_course->status == 1 ? 'Pagata' : ($member_course->status == 2 ? 'Da pagare' : 'Sospesa')}}
 
Iscrizione
getMonthStatus(9, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(9, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(9, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Set  getMonthStatus(10, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(10, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(10, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Ott  getMonthStatus(11, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(11, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(11, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Nov  getMonthStatus(12, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(12, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(12, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Dic  getMonthStatus(1, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(1, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(1, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Gen  getMonthStatus(2, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(2, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(2, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Feb  getMonthStatus(3, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(3, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(3, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Mar  getMonthStatus(4, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(4, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(4, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Apr  getMonthStatus(5, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(5, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(5, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Mag  getMonthStatus(6, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(6, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(6, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Giu  getMonthStatus(7, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(7, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(7, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Lug  getMonthStatus(8, $member_course->months, $member_course->id) == 'blue' || $this->getMonthStatus(8, $member_course->months, $member_course->id) == 'orange' || $this->getMonthStatus(8, $member_course->months, $member_course->id) == 'yellow' ? 'style=cursor:pointer' : ''}}>Ago 
 
@if($selectedCourseMember == $member_course->id) @if(sizeof($payMonths) > 0 || $createSubscription)   @endif @if(sizeof($suspendedMonths) > 0)   @endif
@endif @if($member_course->notes != '')
Note
{{$member_course->notes}} @endif
@else
@if(false)
@if($course_exist) Attenzione : il corso selezionato è già associato all'utente @endif
@endif
@error('course_course_id')
Devi selezionare un corso (corso, livello, tipologia e frequenza)
@enderror @if($course_exist) Attenzione : il corso selezionato è già associato all'utente @endif
@if($course_name != '')
@endif @if($course_level_id != '')
@endif @if($course_type_id != '')
@endif
@if(false)
@endif
@if(false)
@endif @foreach($course_when as $idW => $when)
@endforeach

@if($addCourse) @if(!$course_exist) @endif @endif @if($updateCourse) @endif
@endif @endif @endif
{{ strtoupper($first_name) }} {{ strtoupper($last_name) }} {{ $birth_date ? date("d/m/Y", strtotime($birth_date)) : '' }}{!!$age != '' ? ' (' . $age . ')' : ''!!}
  • Tel. {{ $phone }}
  • {{ $email }}
  • @if($city_id > 0) {{$this->getCity($city_id)}} @if($province_id > 0) ( {{$this->getProvince($province_id)}} ) - @endif @endif {{ $zip_code }}
    {{ $address }}

Borsellino MAD

{{formatPrice($money)}}

Corsi

@foreach($member_courses as $member_course)
{{$member_course->course->getTree()}}
@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
@foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $d) {{$d}} @endforeach {{$x->from}} - {{$x->to}} @endforeach
@endforeach

Tesseramento

@foreach($member_cards as $member_card) @if($member_card->expire_date . " 23:59:59" > date("Y-m-d"))

{{$member_card->card->name}}

Scadenza: {{$member_card->expire_date ? date("d/m/Y", strtotime($member_card->expire_date)) : ''}} @if($member_card->discipline_1)
Disciplina : {{$member_card->discipline_1->name}} @endif @if($member_card->discipline_2)
Disciplina : {{$member_card->discipline_2->name}} @endif @if($member_card->discipline_3)
Disciplina : {{$member_card->discipline_3->name}} @endif
attiva
@endif @endforeach

Certificato

@if(sizeof($member_certificates) > 0) @php $cert = $member_certificates[0] @endphp @if($cert->expire_date . " 23:59:59" > date("Y-m-d"))

{{$cert->type == 'A' ? 'Agonistico' : 'Non agonistico'}}

Scadenza: {{$cert->expire_date ? date("d/m/Y", strtotime($cert->expire_date)) : ''}}
@if($cert->expire_date . " 23:59:59" < date("Y-m-d")) scaduto @endif @if($cert->expire_date . " 23:59:59" >= date("Y-m-d") && $cert->expire_date < date("Y-m-d", strtotime("+1 month"))) in scadenza @endif @if($cert->expire_date . " 23:59:59" >= date("Y-m-d", strtotime("+1 month"))) valido @endif
@endif @endif

Gruppi di appartenenza

@foreach($member_categories as $member_category)
{{$member_category->category->getTree()}}
@endforeach
@if($add) @endif @if($update) @endif

@endif
@endif
@push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush