@php $items = $record->items()->with(['product', 'warehouse', 'location'])->get(); $isEditable = $editable ?? false; @endphp
@forelse($items as $item) {{-- Type --}} {{-- Product ID --}} {{-- Description --}} {{-- Brand --}} {{-- Warehouse --}} {{-- Location --}} {{-- Quantity --}} {{-- Unit --}} {{-- Unit Price --}} {{-- Total --}} @empty @endforelse
Type Product ID Description Brand Warehouse Location Qty Unit Unit Price Total
@if($item->is_return)
Return
@else
Purchase
@endif
{{ $item->product_id_raw }}
{{ $item->description ?: '-' }}
{{ $item->brand ?: '-' }}
{{ $item->warehouse->name ?? 'Go-Parts GA' }}
{{ $item->location->location ?? 'Default' }}
{{ $item->quantity }}
{{ $item->unit }}
${{ number_format($item->unit_price, 2) }}
${{ number_format($item->total_price, 2) }}
No items found