@extends('layouts.app') @section('title', isset($invoice) ? 'Redigera '.$invoice->invoice_number : 'Ny faktura') @section('content') @php $tenant = auth()->user()->tenant; $customers = $tenant->customers()->where('is_active',true)->orderBy('name')->get(); $products = $tenant->products()->where('is_active',true)->orderBy('name')->get(); $isEdit = isset($invoice); @endphp
@php $rowCount = $isEdit ? $invoice->rows->count() : 1; @endphp @push('scripts') @endpush @endsection