@extends('layouts.app') @php $isEdit = isset($offer); // Normalize field values for both modes $personValue = $isEdit ? ($offer->person ?? '') : ($opportunity->contact ?? ''); $titleValue = $isEdit ? ($offer->title ?? '') : ''; $phoneValue = $isEdit ? ($offer->phone ?? '') : ''; $addressValue = $isEdit ? ($offer->address ?? '') : ''; $dateValue = $isEdit ? ($offer->date ?? $today) : $today; $dueDateValue = $isEdit ? ($offer->due_date ?? '') : \Carbon\Carbon::now()->addDays(15)->format('Y-m-d'); $selectedCurrencyInit = $isEdit ? ($offer->currency ?? 'TRL') : 'TRL'; $exchangeRateInit = $isEdit ? ($offer->ex_rate ?? '1.00') : '1.00'; $rowsJson = $isEdit ? json_encode($offer_lines ?? []) : '[]'; $noteContent = $isEdit ? ($offer->note ?? '') : "Fiyatlara vergiler dahil değildir.
\nTeklif düzenleme tarihinden itibaren 15 gün süreyle geçerlidir."; @endphp @section('content')
@csrf @if($isEdit) @endif
TEKLİF
{{--İŞLETME--}} @if(!$isEdit && $company == null)
@else
@endif
SAYIN
@if(!$isEdit && isset($opportunity) && $opportunity != null)
@endif
TEKLİF BİLGİLERİ
{{--SATIR EKLE--}}
{{--ALT TOPLAMLAR--}}
Ara Toplam:
TRL
İndirimler:
TRL
Vergiler:
TRL
Teklif Tutarı:
TRL
TL Ara Toplam TL İndirim Toplam TL Vergiler Toplam TL Genel Toplam EX Ara Toplam EX İndirim Toplam EX Vergiler Toplam EX Genel Toplam
{{--FOOTER--}} {{--BUTTONS--}}
@endsection @section('scripts') @endsection @section('outerScripts') @endsection