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

@if(!$add && !$update) @endif
@if(!$add && !$update)
@if (session()->has('receipt')) @endif
Data pagamento Importo Cognome Nome Commerciale Causale Pagamento Stato ...

@else

@if (session()->has('error')) @endif
Tipologia
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
Data pagamento
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
 
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)}}
{{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
@foreach($rows as $idx => $row)
Causale
@if($this->dataId > 0 && !$isDuplicate) {{$this->getCausal($rows[$idx]['causal_id'])}}
@else @endif @error('rows.'. $idx . '.causal_id') {{ $message }} @enderror
Dettaglio causale
dataId > 0 && !$isDuplicate ? 'disabled' : ''}}>
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
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 {{$this->currencyToDouble($rows[$idx]["amount"]) > 0 ? formatPrice(($this->currencyToDouble($rows[$idx]["amount"]) + getVatValue($this->currencyToDouble($rows[$idx]["amount"]), $rows[$idx]["vat_id"])) / sizeof($rows[$idx]["when"])) : ""}}

@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)
@endif @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 @if($currentReceip->status != 99) @endif @endif @endif @endif @if($update && !$corrispettivo_fiscale) @if($this->member && !$commercial && !$this->member->isAdult() && $parent == '') Devi selezionare un genitore @else @if($currentReceip->status != 99) @endif @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 : ''}}
@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"])}}
{{$row["note"]}}
{{$row["amount"]}}{{$vat_name}} {{$vat_value > 0 ? formatPrice($vat_value) : ''}}{{formatPrice($this->currencyToDouble($row["amount"]) + $vat_value)}}
@endif
Importo{{$this->getPrice()}}
@if(false)
Iva{{$this->getVat()}}
@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