@extends('layouts.fleet') @section('title', $collection->collection_number.' — تحصيل') @section('content')

{{ $collection->collection_number }}

{{ $collection->agent?->name }} @if($collection->customer) · {{ $collection->customer->name }} @endif · {{ $collection->collected_on->format('Y-m-d') }} · {{ $statusLabels[$collection->status] ?? $collection->status }}

@if(app(\App\Support\FleetAccess::class)->allows(\App\Support\FleetAccess::CAP_MANAGE_COLLECTIONS)) @if($collection->isDraft())
@csrf
@endif @if($collection->status !== \App\Models\Fleet\FleetCollection::STATUS_VOID)
@csrf
@endif @endif رجوع
@if($errors->has('collection'))
{{ $errors->first('collection') }}
@endif

طريقة التحصيل

{{ $paymentLabels[$collection->payment_method] ?? $collection->payment_method }}

الإجمالي

{{ erp_money($collection->subtotal) }}

@if($collection->route) @endif @if($collection->routeStop)

محطة الزيارة

{{ $collection->routeStop->customer?->name ?? '—' }}

@endif
@if($collection->notes)
{{ $collection->notes }}
@endif
@foreach($collection->lines as $line) @endforeach
الصنف SKU الكمية سعر الوحدة الإجمالي
{{ $line->product?->name ?? '—' }} {{ $line->product?->sku ?? '—' }} {{ number_format($line->quantity, 2) }} {{ erp_money($line->unit_price) }} {{ erp_money($line->line_total) }}
الإجمالي {{ number_format($totalQty, 2) }} {{ erp_money($collection->subtotal) }}
@if($collection->isConfirmed())

تم خصم البضاعة من عهدة {{ $collection->agent?->name }} — عرض الرصيد

@endif
@endsection