@extends('admin.layouts.app') @section('title', 'Return Request #' . $return->id) @section('content')

Return Request #{{ $return->id }}

Order #{{ str_pad($return->order_id, 6, '0', STR_PAD_LEFT) }}

{{ ucfirst($return->status) }}

Return Reason

{{ $return->reason }}

Items to Return

@php $returnItems = is_array($return->items) ? $return->items : json_decode($return->items, true) ?? []; @endphp @foreach($return->order->items as $item)
@if($item->product) {{ $item->product_name }} @endif

{{ $item->product_name }}

Qty: {{ $item->quantity }} × ৳{{ number_format($item->price, 0) }}

@if(in_array($item->id, $returnItems)) Return Requested @endif
@endforeach
@if($return->admin_notes)

Admin Notes

{{ $return->admin_notes }}

@endif

Customer

{{ $return->customer->name ?? 'N/A' }}
{{ $return->customer->phone ?? '' }}
{{ $return->customer->email ?? '' }}

@if($return->status === 'pending')

Actions

@csrf
@csrf
@elseif($return->status === 'approved')
@csrf
@endif

Timeline

Submitted: {{ $return->created_at->format('M d, Y h:i A') }}
@if($return->processed_at)
Processed: {{ $return->processed_at->format('M d, Y h:i A') }}
@endif
Back to Returns
@endsection