| Order # | Customer | RMA # | Actions | ||||
|---|---|---|---|---|---|---|---|
|
@if($rma->order_id)
{{ $rma->order_id }}
@else
N/A
@endif
|
{{ $rma->name }}
{{ $rma->email }}
|
#{{ $rma->rma_id }} | @php $statusColors = [ 'accepted' => 'background: rgb(34, 197, 94); color: white;', 'denied' => 'background: rgb(239, 68, 68); color: white;', 'pending' => 'background: rgb(251, 191, 36); color: rgb(92, 45, 7);', 'contacted' => 'background: rgb(59, 130, 246); color: white;', ]; // Determine status based on access_deny field $status = 'pending'; if ($rma->access_deny === 1) { $status = 'accepted'; } elseif ($rma->access_deny === 0) { $status = 'denied'; } $statusStyle = $statusColors[$status] ?? 'background: rgb(156, 163, 175); color: white;'; $statusLabel = ucfirst($status); @endphp {{ $statusLabel }} |
@if($rma->access_deny !== 1)
@else
@endif
@if($rma->access_deny !== 0)
@else
@endif
|
|||
Part Description{{ $this->removeSpecial($rma->part_description) }} Return Reason@if($rma->select_reason_return) {{ $rma->selected_reason_text }} @endif{{ $this->removeSpecial($rma->reason_return) }} Comments
@foreach($rma->comments as $comment)
@else
{{ $comment->date ? $comment->date->format('M j, Y @ h:i a') : '' }}
{{ $comment->comment }}
No comments yet @endifAttachments
@if($rma->pic_part_ext)
Part Image Mfg Label |
|||||||