@if(!$add && !$update)Entrate @else Inserimento/modifica entrata @endif

@if(!$add && !$update) @endif
@if(!$add && !$update)
@if (session()->has('receipt')) @endif
{{-- --}}
Data di pagamento Importo Cognome Nome Commerciale Causale Corso/Abbonamento PagamentoDestinazioneStato ...

@else @if($isDuplicate)

@else

@endif @if (session()->has('error')) @endif @if (session()->has('error_ricevuta')) @endif @if($currentReceip?->status == 99) @endif
Tipologia
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@if (!is_null($receipt_date) && $receipt_date != "1970-01-01")
Data ricevuta
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@if ($data_ricevuta_old)
Attenzione, sono presenti ricevute con una data più recente di quella inserita
@endif
@endif
Data pagamento
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@if (is_null($receipt_date) || $receipt_date == "1970-01-01")
@endif
Utente @error('member_id')
{{ $message }}
@enderror

@if($this->dataId == 0 && !$isDuplicate)   @endif @if(false && $this->member) {{$this->member->first_name}} {{$this->member->last_name}} {!! !$this->member->isAdult() ? ' MINORENNE' : '' !!}
Codice fiscale : {{$this->member->fiscal_code}}
Email : {{$this->member->email}}
Borsellino virtuale {{number_format($virtual, 2, ".", "")}} €
@if(sizeof($this->member->certificates) > 0) @php $cert = $this->member->certificates[0] @endphp @if($cert->expire_date < date("Y-m-d")) Certificato medico scaduto @endif @endif @php $status = $this->member->getStatus()["status"]; $class = $status > 0 ? ($status == 2 ? 'active' : 'suspended') : 'due'; $text = $status > 0 ? ($status == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'; @endphp {{$text}} @endif
@if(false)
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@endif @if($commercial)
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@endif @if($corrispettivo_fiscale) @if ($this->dataId > 0)
{{$this->getPaymentMethod($payment_method_id)}}
{{$this->getBankName($destination_id)}}
{{formatPrice($amount)}}
@else @foreach($payments as $payment) @if($payment->corrispettivo_fiscale)
{{$payment->name}}
@endif @endforeach
Totale
{{$this->getTotalCorrispettivo()}}
@endif @else
Metodo di pagamento @error('payment_method_id')
{{ $message }}
@enderror
Destinazione @error('destination_id')
{{ $message }}
@enderror
@foreach($rows as $idx => $row)
Causale @if ($fromCourse || $row['course_id'] || $row['subscription_id']) {{$this->getCausal($rows[$idx]['causal_id'])}}
@else @if($this->dataId > 0 && !$isDuplicate) {{$this->getCausal($rows[$idx]['causal_id'])}}
@else @endif @error('rows.'. $idx . '.causal_id') {{ $message }} @enderror @endif
@if ($fromCourse) @if (isset($row['course']) && $row['course'] != null)
Corso @if (isset($row['course'])) {{$row['course']->getDetailsName()}} @endif
@elseif (isset($row['subscription']) && $row['subscription'] != null)
Abbonamento @if (isset($row['subscription'])) {{$row['subscription']->name}} @endif
@endif @endif
Dettaglio causale
Importo
@if ($commercial)
@else
@endif
@if($add) dataId > 0 && !$isDuplicate ? 'disabled' : ''}} > @endif @if($update) dataId > 0 && !$isDuplicate ? 'disabled' : ''}}> @endif @error('rows.'. $idx . '.amount') {{ $message }} @enderror
@if(!$corrispettivo_fiscale)
Sconto
@if($add) dataId > 0 && !$isDuplicate ? '' : ''}} > @endif @if($update) dataId > 0 && !$isDuplicate ? 'disabled' : ''}} > @endif
@endif
Competenza
@if($multiP)

Seleziona inizio e fine multiperiodo

Dal mese
Anno
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
Dal mese
Anno
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
@if($this->dataId == 0 && !$isDuplicate)
@endif
@else @foreach($row["when"] as $xxx => $w)
Mese
Anno
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
Valore @php $rowAmount = $this->currencyToDouble($rows[$idx]["amount"]); $rowSconto = isset($rows[$idx]["sconto"]) ? $this->currencyToDouble($rows[$idx]["sconto"]) : 0; $totalValue = max(0, $rowAmount - $rowSconto); if ($rows[$idx]["vat_id"] > 0) { $vatAmount = getVatValue($totalValue, $rows[$idx]["vat_id"]); $totalValue = $totalValue + $vatAmount; } $valuePerPeriod = sizeof($rows[$idx]["when"]) > 0 ? $totalValue / sizeof($rows[$idx]["when"]) : 0; @endphp {{ $rowAmount > 0 ? formatPrice($valuePerPeriod) : "" }}

@if($this->dataId == 0) @endif
@endforeach @if($this->dataId == 0)
@endif @endif


@if($this->dataId == 0) @if($idx > 0)

@endif @endif
@endforeach @if($this->dataId == 0 && !$fromCourse)
@endif @endif
@if($isDuplicate) @else @endif @if(!$deleted) @if($canSave) @if($add) @if($commercial) @if($corrispettivo_fiscale) @if($corrispettivo_causal_id > 0) @else Non hai configurato una causale per il corrispettivo fiscale @endif @else @endif @else @if($this->member && !$commercial && !$this->member->isAdult() && $parent == '') Devi selezionare un genitore @else @endif @endif @endif @if($update && !$corrispettivo_fiscale) @if($this->member && !$commercial && !$this->member->isAdult() && $parent == '') Devi selezionare un genitore @else @endif @endif @else Attenzione : non c'è credito sufficiente sul borsellino virtuale @endif @endif
@if(!$corrispettivo_fiscale)
{{-- --}}
{{!$commercial ? 'Ricevuta' : 'Promemoria pagamento'}} {{$currentReceip ? $currentReceip->number . "/" . $currentReceip->year : ''}} {{$currentReceip != null ? ' del ' . date("d/m/Y", strtotime($currentReceip->receipt_date ?? $currentReceip->date)) : ''}}
@if($this->member)
  • {{$this->member->first_name}} {{$this->member->last_name}} {!! !$this->member->isAdult() ? ' MINORENNE' : '' !!}
    Codice fiscale : {{$this->member->fiscal_code}}
    Email : {{$this->member->email}}
    Borsellino virtuale {{number_format($virtual, 2, ".", "")}} €
    @if(sizeof($this->member->certificates) > 0) @php $cert = $this->member->certificates[0] @endphp @if($cert->expire_date < date("Y-m-d")) Certificato medico scaduto @endif @endif @php $status = $this->member->getStatus()["status"]; $class = $status > 0 ? ($status == 2 ? 'active' : 'suspended') : 'due'; $text = $status > 0 ? ($status == 2 ? 'Tesserato' : 'Sospeso') : 'Non tesserato'; @endphp {{$text}}
  • @if(!$this->member->isAdult())

  • Seleziona un genitore
  • @endif
@endif
  • Data di Pagamento
  • {{ date("d/m/Y", strtotime($date)) }}
@if(sizeof($rows) > 0) @if($commercial == 1) @endif @foreach($rows as $row) @php $vat_value = 0; @endphp @if($commercial == 1) @php $vat_name = ''; if ($row["vat_id"] > 0) { $v = \App\Models\Vat::findOrFail(intval($row["vat_id"])); $vat_name = $v->name; $vat_value = $this->currencyToDouble($row["amount"]) / 100 * $v->value; } @endphp @endif @endforeach
CausaleImponibile % Iva IvaTotale
{{$this->getCausal($row["causal_id"])}}
@if(!$fromCourse) {{$row["note"]}} @endif
{{$row["amount"]}}{{$vat_name}} {{$vat_value > 0 ? formatPrice($vat_value) : ''}}{{formatPrice($this->currencyToDouble($row["amount"]) + $vat_value)}}
@endif
Importo {{$this->getPrice()}}
@php $totalSconto = 0; foreach ($this->rows as $row) { if (isset($row['sconto']) && $row['sconto'] != null && $row['sconto'] != "") { $totalSconto += $this->currencyToDouble($row['sconto']); } } @endphp @if($totalSconto > 0)
Sconto - {{formatPrice($totalSconto)}}
@endif @foreach($this->getVats() as $k => $v)
{{$k}} {{formatPrice($v)}}
@endforeach
Totale {{$this->getTotal()}}
@if($update && !$isDuplicate && !$deleted) @if($currentReceip) @if($currentReceip->status == 99) {{--
Annullata --}} @if($this->member && !$commercial && !$this->member->isAdult() && $parent == '') Devi selezionare un genitore @else @endif @else
stampa ricevuta
@endif @else @if(!$corrispettivo_fiscale) @if($this->member && !$commercial && !$this->member->isAdult() && $parent == '') Devi selezionare un genitore @else @endif @endif @endif @endif
@endif
@endif
@push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush