@php $stages = [ 'إنشاء' => 'gray', 'مراجعة' => 'yellow', 'حجز_المواد' => 'blue', 'فرز' => 'purple', 'قص' => 'orange', 'تعبئة' => 'indigo', 'فوترة' => 'green', 'تسليم' => 'emerald', ]; $currentStageIndex = array_search($record->current_stage, array_keys($stages)) + 1; $totalStages = count($stages); $progressPercentage = ($currentStageIndex / $totalStages) * 100; @endphp
{{ $record->order_number }}
{{ __('orders.type_options.' . $record->type) }}
{{ __('orders.current_stage_options.' . $record->current_stage) }}
@if($record->customer) {{ __('orders.customer_name') }}: {{ $record->customer->name ?? $record->customer_name }} @if($record->customer_phone) {{ __('orders.customer_phone') }}: {{ $record->customer_phone }} @endif @elseif($record->supplier) {{ __('orders.supplier_id') }}: {{ $record->supplier->name ?? 'N/A' }} @endif
{{ __('orders.material_type') }}: {{ __('orders.material_type_options.' . $record->material_type) }} @if($record->required_weight) {{ __('orders.required_weight') }}: {{ $record->required_weight }} kg @endif @if($record->required_length) {{ __('orders.required_length') }}: {{ $record->required_length }} m @endif @if($record->required_width) {{ __('orders.required_width') }}: {{ $record->required_width }} m @endif @if($record->required_plates) {{ __('orders.required_plates') }}: {{ $record->required_plates }} @endif
{{ __('orders.total_amount') }}: ${{ number_format($record->total_amount, 2) }} {{ __('orders.paid_amount') }}: ${{ number_format($record->paid_amount, 2) }} {{ __('orders.remaining_amount') }}: ${{ number_format($record->remaining_amount, 2) }}
@foreach($stages as $stage => $color) {{ __('orders.current_stage_options.' . $stage) }} @endforeach