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

@if(!$add && !$update)Elenco Uscite @else Inserimento/modifica uscita @endif

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

Registra
Nuova Uscita

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

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

Data di Pagamento
Fornitore @error('supplier_id')
{{ $message }}
@enderror
Pagamento
@error('payment_method_id')
{{ $message }}
@enderror
@foreach($rows as $idx => $row)
Causale
@livewire('causals', ['type' => 'OUT', 'idx' => $idx, 'causal_id' => $rows[$idx]["causal_id"]]) @if(false) @error('causal_id')
{{ $message }}
@enderror @endif @error('rows.' . $idx . '.causal_id')
{{ $message }}
@enderror
Dettaglio causale
Tipologia
Importo
@if($add) @endif @if($update) @endif @error('rows.' . $idx . '.amount')
{{ $message }}
@enderror
Periodo
@foreach($row["when"] as $xxx => $w)
Mese
Anno

@endforeach





@endforeach
@if($add) @endif @if($update) @endif
@if(false)
Ricevuta
@if($this->supplier)
  • {{$this->supplier->name}}
  • P.IVA: {{$this->supplier->vat}}
@endif
  • Data di Pagamento
  • {{ date("d/m/Y", strtotime($date)) }}
@if($this->causal)
  • Causale
  • {{$this->causal->getTree()}}
@endif
@endif
@endif
@push('scripts') @endpush @push('scripts') @endpush