@extends('layouts.app') @section('content') @php $isEdit = isset($mode) && $mode === 'edit'; $editable = ($faktura->can_be_editable ?? true) && !($faktura->usunieto ?? false); $action = $isEdit ? route('faktury.update.lines', $faktura->id_faktura) : route('faktury.store.lines', $faktura->id_faktura); $backRoute = $isEdit ? route('faktury.edit.parties', $faktura->id_faktura) : route('faktury.create.parties', $faktura->id_faktura); $nextLabel = $isEdit ? 'Zapisz zmiany' : 'Zapisz pozycje i przejdź do płatności'; @endphp
{{-- Nagłówek --}}

{{ $isEdit ? 'Edycja faktury — Krok 3/5: Pozycje' : 'Nowa faktura — Krok 3/5: Pozycje' }}

Faktura #{{ $faktura->id_faktura }} · {{ $faktura->p_2_numer }} · {{ $faktura->p_1_data_wystawienia }}

Wróć do podmiotów
{{-- Pasek postępu --}}
1. Nagłówek 2. Podmioty 3. Pozycje 4. Płatności 5. Podsumowanie
{{-- Komunikaty --}} @if (!$editable)
Ta faktura jest {{ $faktura->usunieto ? 'oznaczona jako usunięta' : 'zatwierdzona' }} — edycja zablokowana. Pola są tylko do podglądu.
@endif @if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@endif
@csrf @if($isEdit) @method('PATCH') @endif
Pozycje faktury
Podaj jedną z cen jednostkowych: NETTO albo BRUTTO. Reszta przeliczy się automatycznie.
{{-- Pasek „nagłówków” --}}
#
Nazwa (P_7)
j.m. (P_8A)
Ilość (P_8B)
Cena NETTO (P_9A)
Cena BRUTTO (P_9B)
Stawka (P_12)
{{-- Wiersze --}}
Wstecz @if($editable) @else Podgląd podsumowania @endif
@endsection @push('styles') @endpush