{{ $deal->title }}

{{ $deal->customer->name }}{{ $deal->project ? ' — '.$deal->project->name : '' }}

{{ $deal->stage->name }} {{ $deal->status->label() }}
@if ($deal->status->value === 'open')
@can('update', $deal) برنده {{-- Opens a dialog rather than confirming outright, so the reason can be captured — that is what feeds the lost-reason report. --}} ازدست‌رفته @endcan

این معامله ازدست‌رفته اعلام شود؟

اگر دلیل را ثبت کنید، در گزارش «دلایل ازدست‌رفتن فرصت‌ها» دیده می‌شود.

انصراف ثبت به‌عنوان ازدست‌رفته
@elseif ($deal->status->value === 'won')
@if ($deal->invoice_no) فاکتور {{ $deal->invoice_no }} @else @can('update', $deal)
صدور فاکتور
@endcan @endif
@endif @can('delete', $deal)
حذف معامله
@endcan
{{-- Items --}}
@foreach ($deal->items as $item) @endforeach
شرح تعداد قیمت واحد جمع
{{ $item->name }} {{ number_format($item->qty, 0) }} {{ $item->unit }} {{ number_format($item->unit_price, 0) }} {{ number_format($item->line_total, 0) }}
{{-- Payments --}}

پرداخت‌ها

@can('create', \App\Models\Payment::class) + ثبت پرداخت @endcan
@forelse ($payments as $payment) @empty @endforelse
تاریخ مبلغ روش توضیحات فایل وضعیت
@ldate($payment->payment_date) {{ number_format($payment->amount, 0) }} {{ $payment->method }} @if ($payment->note) {{ Str::limit($payment->note, 60) }} @else — @endif @forelse ($payment->attachments as $file) {{ Str::limit($file->original_name, 20) }} @can('delete', $file) @endcan @empty — @endforelse {{ $payment->status->label() }} @can('update', $payment) @if ($payment->status->value !== 'reversed') @endif @endcan @can('confirm', $payment) @if ($payment->status->value === 'pending') @endif @endcan @can('reverse', $payment) @if ($payment->status->value === 'confirmed') @endif @endcan
پرداختی ثبت نشده است.
{{-- Totals card --}}

جمع‌بندی مالی

جمع جزء
{{ number_format($deal->subtotal, 0) }}
مالیات
{{ number_format($deal->tax_total, 0) }}
مبلغ نهایی
{{ number_format($deal->total_amount, 0) }}
پرداخت‌شده
{{ number_format($deal->paid_amount, 0) }}
مانده
{{ number_format($deal->outstanding_amount, 0) }}
سود ناخالص
{{ number_format($deal->gross_profit, 0) }}
سود خالص
{{ number_format($deal->net_profit, 0) }}

{{ $editingPaymentId ? 'ویرایش پرداخت' : 'ثبت پرداخت' }}

{{-- Keyed so Livewire replaces the node rather than morphing it: the x-persian-date directive reads its value once at mount, so an edit would otherwise render a blank Jalali field over a filled input. --}}
{{-- wire:key resets the input after a save; without it the browser keeps showing the previous filename as though it were still attached. --}}

اختیاری — حداکثر ۱۰ مگابایت.

در حال بارگذاری…
@if ($editingPaymentId)

انتخاب فایل جدید، فایل قبلی را حذف نمی‌کند و به آن اضافه می‌شود.

@endif
انصراف {{ $editingPaymentId ? 'ذخیره تغییرات' : 'ثبت' }}