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