@if($showDetail)
mr
@if ($currentMember->image != '') @endif
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 >= date("Y-m-d") && $cert->expire_date < date("Y-m-d", strtotime("+1 month"))) in scadenza @endif @if($cert->expire_date >= 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")) { $active = 'suspended'; } @endphp
  • {{$card->card->name}}
    Scadenza: {{$card->expire_date ? date("d/m/Y", strtotime($card->expire_date)) : ''}}
    {{$active == 'active' ? 'ATTIVA' : 'SCADUTA'}}
@endforeach @endif
Borsellino
Credito Residuo:
{{formatPrice($currentMember->getMoney())}}
ricarica
0 ? ($currentStatus["status"] == 2 ? 'active' : 'suspended') : 'due'}}">{{$currentStatus["status"] > 0 ? ($currentStatus["status"] == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'}}
{{$currentMember->first_name}} {{$currentMember->last_name}}
  • Tel. {{$currentMember->phone}}
  • Nato 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()}}

Dal: {{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}}
Al: {{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}}
@foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif {{$x->day}} : {{$x->from}} - {{$x->to}} @endforeach
@endforeach
@else

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

@if(!$add && !$update)

Aggiungi   

@endif
@if(!$add && !$update)
@if(false)
@if($showReset) @else @endif
@endif
@foreach($records as $idx => $record) @php $member_status = $record->getStatus(); @endphp @php $isSubscribed = $record->isActive(); @endphp @php $has_certificate = $record->hasCertificate(); @endphp @endforeach
# Codice Cognome Nome Telefono Età (anni) Stato Stato tesseramento 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->getAge() > 0 ? $record->getAge() : ''}} 0 ? ($member_status["status"] == 2 ? 'active' : 'suspended') : 'due'}}">{{$member_status["status"] > 0 ? ($member_status["status"] == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'}} 0 ? ($isSubscribed["status"] == 2 ? 'active' : 'suspended') : ''}}">{{$isSubscribed["status"] > 0 ? ($isSubscribed["status"] == 2 ? 'Attivo' : 'Sospesa') : ''}} Scadenza tessera {{$isSubscribed["status"] ? 'Scadenza : ' : ($isSubscribed["date"] != '' ? 'Scaduto : ' : '')}} {{$isSubscribed["date"] != '' ? date("d/m/Y", strtotime($isSubscribed["date"])) : ''}} @if($has_certificate["date"] != '') Scadenza certificato @if($has_certificate["date"] < date("Y-m-d")) Scaduto : @endif @if($has_certificate["date"] >= date("Y-m-d") && $has_certificate["date"] < date("Y-m-d", strtotime("+1 month"))) In scadenza : @endif @if($has_certificate["date"] >= date("Y-m-d", strtotime("+1 month"))) Scadenza : @endif {{$has_certificate["date"] != '' ? date("d/m/Y", strtotime($has_certificate["date"])) : ''}} @endif
@else @if (session()->has('success')) @endif @if (session()->has('error')) @endif
@error('image') {{ $message }} @enderror @if ($image) @endif @if ($image_old) @endif
@if($under18)
@endif
@if($isBirthItaly)
@else
@endif
@if($this->error_fc) Dati mancanti @endif
@if($dataId > 0) Stato
{{$active["status_text"]}}
@endif
Residenza
@if($isItaly)
@endif Documento

@foreach ($document_files as $idx => $d) @endforeach
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
@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($addCard) @endif @if($updateCard) @endif @endif @endif
@livewire('categories') @if(false)
@endif {!!$groupMsg!!} @foreach($member_categories as $member_category)

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

@endforeach
@if($dataId > 0) @if(!$addCourse && !$updateCourse) @foreach($member_courses as $member_course) @endforeach
Corso Dal Al Quando ...
{{$member_course->course->getTree()}} {{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}} {{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}} @foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif {{$x->day}} : {{$x->from}} - {{$x->to}} @endforeach
@else
@livewire('courses', ['course_id' => $course_course_id]) @if(false) @endif
@foreach($course_when as $idW => $when)

@endforeach

@if($addCourse) @endif @if($updateCourse) @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 }}

Tesseramento

@foreach($member_cards as $member_card)

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

Scadenza: {{$member_card->expire_date ? date("d/m/Y", strtotime($member_card->expire_date)) : ''}}
@if($member_card->expire_date > date("Y-m-d")) attiva @else scaduta @endif
@endforeach

Certificato

@if(sizeof($member_certificates) > 0) @php $cert = $member_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 >= date("Y-m-d") && $cert->expire_date < date("Y-m-d", strtotime("+1 month"))) in scadenza @endif @if($cert->expire_date >= date("Y-m-d", strtotime("+1 month"))) valido @endif
@endif

Gruppi di appartenenza

@foreach($member_categories as $member_category)
{{$member_category->category->getTree()}}
@endforeach

Corsi

@foreach($member_courses as $member_course)
{{$member_course->course->getTree()}}
Dal: {{$member_course->date_from ? date("d/m/Y", strtotime($member_course->date_from)) : ''}} Al: {{$member_course->date_to ? date("d/m/Y", strtotime($member_course->date_to)) : ''}}
@foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif {{$x->day}} : {{$x->from}} - {{$x->to}} @endforeach
@endforeach
@if($add)         @endif @if($update)         @endif
@endif
@endif
@push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush