جزئیات فاکتور
@if ($viewingInvoice)
کد درخواست
{{ $viewingInvoice->purchaseRequest->request_code }}
تامین‌کننده
{{ $viewingInvoice->supplier->company_name }}
پروژه مرتبط
{{ $viewingInvoice->purchaseRequest->project?->title ?? 'عمومی' }}
تاریخ ثبت پیشنهاد
{{ verta($viewingInvoice->created_at)->format('Y/m/d') }}
@if($viewingInvoice->purchaseRequest->project && $viewingInvoice->purchaseRequest->project->budget && !empty($budgetDetails))

وضعیت بودجه پروژه

@php $spentPercentage = ($budgetDetails['total'] > 0) ? ($budgetDetails['spent'] / $budgetDetails['total']) * 100 : 0; $progressBarColor = 'bg-green-500'; if ($spentPercentage > 85) $progressBarColor = 'bg-yellow-500'; if ($spentPercentage > 100) $progressBarColor = 'bg-red-500'; @endphp
هزینه شده تا کنون: {{ number_format($budgetDetails['spent']) }} تومان ({{ number_format($spentPercentage, 1) }}%)
باقیمانده از بودجه کل ({{ number_format($budgetDetails['total']) }} تومان): {{ number_format($budgetDetails['remaining']) }} تومان
@endif

لیست آیتم‌های تایید شده

@php $totalAmount = 0; @endphp @forelse($winningItemsForInvoice as $item) @php $responseItem = $item->finalResponseItem; $totalItemPrice = $responseItem->supplied_quantity * $responseItem->price_per_unit; $totalAmount += $totalItemPrice; @endphp @empty @endforelse
نام آیتم مقدار قیمت واحد قیمت کل
{{ $item->item_name }} {{ $responseItem->supplied_quantity }} {{ $item->unit }} {{ number_format($responseItem->price_per_unit) }} {{ number_format($totalItemPrice) }}
هیچ آیتم تایید شده‌ای یافت نشد.
جمع کل فاکتور: {{ number_format($totalAmount) }} تومان

یادداشت‌های داخلی

@forelse($viewingInvoice->payments->flatMap->notes as $note)

{{ $note->body }}

- {{ $note->user->name }} در {{ verta($note->created_at)->format('Y/m/d H:i') }}

@empty

هیچ یادداشتی ثبت نشده است.

@endforelse
ثبت یادداشت

تاریخچه اقدامات

    @forelse($viewingInvoice->payments->flatMap->logs as $log)
  1. {{ $log->user?->name ?? 'سیستم' }}

    {{ $log->description }}

  2. @empty

    هیچ اقدامی ثبت نشده است.

    @endforelse
@endif
بستن