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

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

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

Registra
Nuova Entrata

@endif
@foreach($records as $record) @endforeach
Data pagamento    Importo    Persona    Causale Pagamento    ...
{{date("d/m/Y", strtotime($record->date))}} {{formatPrice($record->getTotal())}} @if($record->member) {{$record->member->first_name}} {{$record->member->last_name}} @endif @foreach($record->rows as $row) {{$row->causal->getTree()}}
@endforeach
{{$record->payment_method->name}}
@else @if (session()->has('error')) @endif

{{$add ? 'Nuova' : 'Modifica'}} Entrata

Data pagamento
 
Persona @error('member_id')
{{ $message }}
@enderror

@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 @endif
Pagamento
@error('payment_method_id')
{{ $message }}
@enderror
@foreach($rows as $idx => $row)
Causale
@livewire('causals', ['type' => 'IN', 'idx' => $idx, 'causal_id' => $rows[$idx]["causal_id"]]) @if(false) @endif @error('causal_id')
{{ $message }}
@enderror
Dettaglio causale
Tipologia
Importo
@if($add) @endif @if($update) @endif @error('amount')
{{ $message }}
@enderror
Competenza
@foreach($row["when"] as $xxx => $w)
Mese
Anno

@endforeach





@endforeach
@if($canSave) @if($add) @endif @if($update) @endif @else Attenzione : non c'è credito sufficiente sul borsellino virtuale @endif
Ricevuta {{$currentReceip ? $currentReceip->number . "/" . $currentReceip->year : ''}}
@if($this->member)
    @if($this->member->isAdult())
  • {{$this->member->first_name}}
  • Nato/a il {{$this->member->birth_date ? date("d/m/Y", strtotime($this->member->birth_date)) : ''}}
  • @else
  • {{$this->member->father_name != '' ? $this->member->father_name : $this->member->mother_name}}
  • @endif
@endif
  • Data di Pagamento
  • {{ date("d/m/Y", strtotime($date)) }}
@if(sizeof($rows) > 0)
  • Causale
  • @foreach($rows as $row) {{$this->getCausal($row["causal_id"])}} {{$row["amount"]}}
    @endforeach
@endif
Importo{{$this->getTotal()}}
Totale Netto{{$this->getTotal()}}
@if($add) @endif @if($update) @if($currentReceip) @if($currentReceip->status == 99)
Annullata @else @endif @else @endif @endif
@endif
@push('scripts') @endpush @push('scripts') @endpush