@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] @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 @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
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(in_array($member_course->id, $showCourse)) @if(false) @endif @endif @endforeach
{{$member_course->course->name}}
{{$member_course->course->frequency->name ?? ""}}
{{$member_course->course->level->name ?? ""}}
@php $status = $member_course->getStatus(); @endphp {{$status == 0 ? 'Da pagare' : ($status == 1 ? 'Pagato' : 'Sospeso')}}
@if($member_course->notes != '')   @endif
{{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
@if($dataId > 0) @if ($active["status"] == 1 || $hasCertificate) @endif @endif @else

 Standard      Personalizzato
@if(false) @endif @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
@if($course_course_id > 0)
@if($addCourse) @if(!$course_exist) @endif @endif @if($updateCourse) @endif
@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