@extends('adminlte::page') @section('title', 'Sipariş #' . $order->id) @section('content') @php $typeColors = ['daily' => '#27ae60', 'weekly' => '#2980b9', 'manual' => '#8e44ad']; $color = $typeColors[$order->type] ?? '#555'; $status = $statuses[$order->status] ?? ['label' => $order->status, 'badge' => 'secondary']; @endphp

Sipariş #{{ $order->id }}

{{ optional($order->fromBranch)->name }} {{ optional($order->toBranch)->name }} · {{ $order->order_date?->format('d.m.Y') ?? '-' }}
{{ $status['label'] }} @if($order->status === 'pending')
@csrf @method('PATCH')
@endif
@if(session('success'))
{{ session('success') }}
@endif @if($order->note)
{{ $order->note }}
@endif
Sipariş Kalemleri {{ $order->items->count() }} ürün
@foreach($order->items as $i => $item) @php $ist = $statuses[$item->status] ?? ['label' => $item->status, 'badge' => 'secondary']; @endphp @endforeach
# Ürün Ambalaj İstenen Gönderilen Teslim Alınan Durum
{{ $i + 1 }} {{ optional($item->product)->name ?? '-' }} {{ optional($item->packageType)->name ?? '-' }} {{ number_format($item->quantity_ordered, 0) }} {{ $item->quantity_sent > 0 ? number_format($item->quantity_sent, 0) : '—' }} {{ $item->quantity_delivered > 0 ? number_format($item->quantity_delivered, 0) : '—' }} {{ $ist['label'] }}
Oluşturan: {{ optional($order->creator)->name ?? '-' }} · {{ $order->created_at->format('d.m.Y H:i') }}
@endsection