@if($showDetail)


@if ($currentMember->image != '') @php $fileService = app(App\Services\MemberFileService::class); $imageUrl = $fileService->getFileUrl($currentMember->image); @endphp @if($imageUrl) Profile Image @else
Image not available
@endif @endif
Borsellino
Borsellino MAD:
{{formatPrice($currentMember->getMoney())}}
ricarica


Certificato
@if(sizeof($currentMember->certificates) > 0) @php $cert = $currentMember->certificates[0]; $fileService = app(App\Services\MemberFileService::class); $certificateUrl = "#"; if($cert->filename != '') { $certificateUrl = $fileService->getFileUrl($cert->filename); } @endphp

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

Scadenza: {{$cert->expire_date ? date("d/m/Y", strtotime($cert->expire_date)) : ''}} @if($certificateUrl != "#") Visualizza @endif
@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
Tesseramento
@if(sizeof($currentMember->cards) > 0) @foreach($currentMember->cards as $card) @php $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'}}
--}}

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

Scadenza: {{$card->expire_date ? date("d/m/Y", strtotime($card->expire_date)) : ''}} @if($card->discipline_1)
Disciplina : {{$card->discipline_1->name}} @endif @if($card->discipline_2)
Disciplina : {{$card->discipline_2->name}} @endif @if($card->discipline_3)
Disciplina : {{$card->discipline_3->name}} @endif
{{$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 il {{ $currentMember->birth_date ? date("d/m/Y", strtotime($currentMember->birth_date)) : '' }} ({{$currentMember->getAge()}} anni)
  • {{ $currentMember->email }}
  • @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 interesse

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

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

@endforeach

Corsi e Abbonamenti

@foreach($currentMember->subscriptions as $member_subscription) @php $course_year = date('Y', strtotime($member_subscription->date_from)); $current_year = date('Y'); $course_month = date('m', strtotime($member_subscription->date_from)); $current_month = date('m'); @endphp @if ( ($course_year == (date('Y') + 1) && $course_month <=8) || ($course_year == date('Y') && $course_month >= 9) )
{{$member_subscription->subscription->name}}
{{date('d/m/Y', strtotime($member_subscription->date_from))}} - {{date('d/m/Y', strtotime($member_subscription->date_to))}} {{-- @if($member_subscription->notes != '') Note: {{$member_subscription->notes}} @endif --}}
@endif @endforeach @foreach($currentMember->courses as $member_course) @php $course_year = date('Y', strtotime($member_course->date_from)); $current_year = date('Y'); $course_month = date('m', strtotime($member_course->date_from)); $current_month = date('m'); @endphp @if ( ($course_year == (date('Y') + 1) && $course_month <=8) || ($course_year == date('Y') && $course_month >= 9) )
{{$member_course->course->getTree()}}
{{$member_course->course->level->name ?? ""}}
{{$member_course->course->frequency->name ?? ""}}
@php $ok = false; @endphp @foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '' && $x->to != '') h {{$x->from}} - {{$x->to}} @endif @php $ok = $x->from != ''; @endphp @endforeach @if(!$ok && $member_course->course->when != '') @foreach(json_decode($member_course->course->when) as $xx => $x) @php $ok = true; @endphp @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '') h {{$x->from}} - {{$x->to}} @endif @endforeach @endif
@endif @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 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->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 e Abbonamenti

Presenze

Gruppi

@if($type == 'dati')
{!!$under18 ? ' MINORENNE' : ''!!}
@if($isBirthItaly)
@else
@endif
@if($this->error_fc) Dati mancanti @endif @if($this->already_existing) Codice fiscale già esistente @endif
@error('image') {{ $message }} @enderror @if ($image) Preview @endif @if ($image_old) @php $fileService = app(App\Services\MemberFileService::class); $imageUrl = $fileService->getFileUrl($image_old); @endphp @if($imageUrl) Current Image @endif @endif
Residenza
@if($isItaly)
@endif
Contatti
 
 
@if($dataId > 0) Stato
{{$active["status_text"]}}
@endif
Documento

@if ($document_files !== null && count(array_filter($document_files)) > 0) @foreach ($document_files as $idx => $d) @if (!empty($d))
@php $fileService = app(App\Services\MemberFileService::class); $fileUrl = $fileService->getFileUrl($d); $fileName = basename($d); @endphp @if($fileUrl) {{ $fileName }} @else {{ $fileName }} (not available) @endif

@endif @endforeach @endif
@if($under18)
Genitore 1

@if ($father_document_files !== null && count(array_filter($father_document_files)) > 0) @foreach ($father_document_files as $idx => $d) @if (!empty($d))
@php $fileService = app(App\Services\MemberFileService::class); $fileUrl = $fileService->getFileUrl($d); $fileName = basename($d); @endphp @if($fileUrl) {{ $fileName }} @else {{ $fileName }} (not available) @endif

@endif @endforeach @endif
Genitore 2

@if ($mother_document_files !== null && count(array_filter($mother_document_files)) > 0) @foreach ($mother_document_files as $idx => $d) @if (!empty($d))
@php $fileService = app(App\Services\MemberFileService::class); $fileUrl = $fileService->getFileUrl($d); $fileName = basename($d); @endphp @if($fileUrl) {{ $fileName }} @else {{ $fileName }} (not available) @endif

@endif @endforeach @endif
@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)) : ''}} @if($member_certificate->filename != '') @php $fileService = app(App\Services\MemberFileService::class); $certificateUrl = $fileService->getFileUrl($member_certificate->filename); @endphp @if($certificateUrl) Visualizza @else File non disponibile @endif @endif
@else

Formati consentiti: .jpg, .pdf, .docx

@if($certificate_filename_old != '') @php $fileService = app(App\Services\MemberFileService::class); $certificateUrl = $fileService->getFileUrl($certificate_filename_old); @endphp @if($certificateUrl)
Visualizza certificato corrente @endif @endif
@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
Tesseramento 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 == 'presenze')

Presenze: {{ $presenze }}
Assenze: {{ $assenze }}
Annullate: {{ $annullate }}
@if (!empty($recuperi))
@foreach ($recuperi as $name => $count) {!! $name !!}: {{ $count }}
@endforeach
@endif
@if (!empty($member_presences))
@foreach($member_presences as $mp) @endforeach
Data Orario Stato Motivazione
{{ date("d/m/Y", strtotime($mp["from"])) }} {{ date("H:i", strtotime($mp["from"])) }} - {{ date("H:i", strtotime($mp["to"])) }} {!! $mp["status"] !!} {!! $mp["motivation"] !!}
@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) @if($active["status"] != 1 && !$hasCertificate)
@elseif($active["status"] != 1)
@elseif(!$hasCertificate)
@endif

Abbonamenti

@if ((is_array($member_subscriptions) && empty($member_subscriptions)) || $member_subscriptions->count() == 0) @else @foreach($member_subscriptions as $member_subscription) @endforeach
{{$member_subscription->subscription->name}}
{{date('d/m/Y', strtotime($member_subscription->date_from))}} - {{date('d/m/Y', strtotime($member_subscription->date_to))}} @if($member_subscription->notes != '') Note: {{$member_subscription->notes}} @endif @php $status = $member_subscription->getStatus(); @endphp {{$status == 0 ? 'Da pagare' : ($status == 1 ? 'Pagato' : 'Sospeso')}}
@endif

Corsi

@if ((is_array($member_courses) && empty($member_courses)) || $member_courses->count() == 0) @else @foreach($member_courses as $member_course) @if($member_course->notes != '') @endif {{-- --}} @if(in_array($member_course->id, $showCourse)) @if(false) @endif @endif @endforeach
{{$member_course->course->name}}
{{$member_course->course->level->name ?? ""}} - {{$member_course->course->frequency->name ?? ""}} @php $ok = false; @endphp @foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '- ' : ''}}{{$d}} @endforeach
@if($x->from != '' && $x->to != '') h {{$x->from}} - {{$x->to}} @endif @php $ok = $x->from != ''; @endphp @endforeach @if(!$ok && $member_course->course->when != '') @foreach(json_decode($member_course->course->when) as $xx => $x) @php $ok = true; @endphp @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '- ' : ''}}{{$d}} @endforeach
@if($x->from != '') h {{$x->from}} - {{$x->to}} @endif @endforeach @endif
@php $status = $member_course->getStatus(); @endphp {{$status == 0 ? 'Da pagare' : ($status == 1 ? 'Pagato' : 'Sospeso')}}
 
{{date("d/m/Y", strtotime($member_course->date_from))}} - {{date("d/m/Y", strtotime($member_course->date_to))}} @php $ok = false; @endphp @foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '' && $x->to != '') h {{$x->from}} - {{$x->to}} @endif @php $ok = $x->from != ''; @endphp @endforeach @if(!$ok && $member_course->course->when != '') @foreach(json_decode($member_course->course->when) as $xx => $x) @php $ok = true; @endphp @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '') h {{$x->from}} - {{$x->to}} @endif @endforeach @endif
Iscrizione
getMonthStatus(9, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Set  getMonthStatus(10, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Ott  getMonthStatus(11, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Nov  getMonthStatus(12, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Dic  getMonthStatus(1, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Gen  getMonthStatus(2, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Feb  getMonthStatus(3, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Mar  getMonthStatus(4, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Apr  getMonthStatus(5, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Mag  getMonthStatus(6, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Giu  getMonthStatus(7, $member_course->months, $member_course->id), ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Lug  getMonthStatus(8, $member_course->months, $member_course->id) , ['blue', 'orange', 'yellow', 'orange half']) ? 'style=cursor:pointer' : ''}}>Ago 
 
@if($member_course->notes != '') Note
{{$member_course->notes}} @endif @if($selectedCourseMember == $member_course->id) @if(sizeof($payMonths) > 0 || $createSubscription)   @endif @if(sizeof($suspendedMonths) > 0)   @endif
@endif
@endif
@if($dataId > 0)
{{-- @if ($active["status"] == 1 || $hasCertificate) --}} {{-- @else --}} {{-- Completa prima il tesseramento o carica un certificato medico valido --}} {{-- @endif --}}
@endif @else

@if($subscription_id == 'course')

@error('course_course_id')
Devi selezionare un corso
@enderror @if($course_exist) Attenzione : il corso selezionato è già associato all'utente @endif @if($course_name != '')
@endif @if($course_level_id != '')
@endif
@if($course_course_id > 0)
@if(false)
@foreach($course_months_list as $cm) {{getMonthName($cm, true)}} @endforeach
@endif
@if($course_course_type == 'custom') @foreach($course_when as $idW => $when)
@endforeach @endif
@endif @elseif($subscription_id != '')
@endif

@if($course_course_id > 0) @if($addCourse) @if(!$course_exist) @endif @endif @if($updateCourse) @endif @endif @if($subscription_id > 0 && $subscription_id != 'course') @if($addCourse) @if(!$subscription_exist) @endif @endif @if($updateCourse) @endif @endif
@endif @endif @endif
{{-- --}}
{{ strtoupper($first_name) }} {{ strtoupper($last_name) }} @if($dataId > 0)
0 ? ($active["status"] == 2 ? 'active' : 'due') : 'suspended'}}">{{$active["status"] > 0 ? ($active["status"] == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'}}
@endif {{-- {{ $birth_date ? date("d/m/Y", strtotime($birth_date)) : '' }}{!!$age != '' ? ' (' . $age . ')' : ''!!} --}}
  • Tel. {{ $phone }}
  • Nato il {{ $birth_date ? date("d/m/Y", strtotime($birth_date)) : '' }}{!!$age != '' ? ' (' . $age . ')' : ''!!}
  • {{ $email }}
  • {{-- --}} @if($city_id > 0) {{$this->getCity($city_id)}} @if($province_id > 0) ( {{$this->getProvince($province_id)}} ) - @endif @endif {{ $zip_code }}
    {{ $address }}

Certificato

@if(sizeof($member_certificates) > 0) @php $cert = $member_certificates[0]; $fileService = app(App\Services\MemberFileService::class); $certificateUrl = "#"; if($cert->filename != '') { $certificateUrl = $fileService->getFileUrl($cert->filename); } @endphp
{{-- --}}

{{$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

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

Corsi e Abbonamenti

@foreach($member_subscriptions as $member_subscription)
{{$member_subscription->subscription->name}}
{{date('d/m/Y', strtotime($member_subscription->date_from))}} - {{date('d/m/Y', strtotime($member_subscription->date_to))}} {{-- @if($member_subscription->notes != '') Note: {{$member_subscription->notes}} @endif --}}
@endforeach @foreach($member_courses as $member_course) @php $course_year = date('Y', strtotime($member_course->date_from)); $current_year = date('Y'); $course_month = date('m', strtotime($member_course->date_from)); $current_month = date('m'); @endphp @if ( ($course_year == (date('Y') + 1) && $course_month <=8) || ($course_year == date('Y') && $course_month >= 9) )
{{$member_course->course->getTree()}}
{{$member_course->course->level->name ?? ""}}
{{$member_course->course->frequency->name ?? ""}}
@php $ok = false; @endphp @foreach(json_decode($member_course->when) as $xx => $x) @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '' && $x->to != '') h {{$x->from}} - {{$x->to}} @endif @php $ok = $x->from != ''; @endphp @endforeach @if(!$ok && $member_course->course->when != '') @foreach(json_decode($member_course->course->when) as $xx => $x) @php $ok = true; @endphp @if($xx > 0)
@endif @foreach($x->day as $zz => $d) {{$zz > 0 ? '-' : ''}}{{$d}} @endforeach @if($x->from != '') h {{$x->from}} - {{$x->to}} @endif @endforeach @endif
@endif @endforeach

Gruppi di interesse

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

Borsellino MAD

{{formatPrice($money)}}
@if (!$addCard && !$updateCard && !$addCourse && !$updateCourse)
@if($add) @endif @if($update) @endif

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