@foreach($headers as $header) @endforeach @foreach($rows as $row) @foreach($headers as $header) @if ($header['field'] == 'image') @elseif ($header['field'] == 'barcode') @elseif ($header['field'] == 'added_at') @elseif ($header['field'] == 'updated_at') @elseif ($header['field'] == 'product_info') @elseif ($header['field'] == 'quantity') @elseif ($header['field'] == 'dimension') @elseif ($header['field'] == 'price') @endif @endforeach @endforeach
{{ $header['header'] }}
@isset($row['profile_logo']) profile-logo @endisset {{ $row['barcode'] }} @isset($row['added_by']) {{ $row['added_by']['display_name'] }}
{{ $row['added_at'] }} @endisset
@isset($row['updated_by']) {{ $row['updated_by']['display_name'] }}
{{ $row['updated_at'] }} @endisset
Name: {{ $row['name'] }}
Reference: {{ $row['reference'] }}
SKU: {{ $row['sku'] }}
UPC: {{ $row['upc'] }}
Initial: {{ $row['initial_stock'] }}
On Hand: {{ $row['stock_on_hand'] }}
Committed: {{ $row['committed_stock'] }}
Available: {{ $row['available_stock'] }}
Length: {{ $row['length'] }}
Width: {{ $row['width'] }}
Height: {{ $row['height'] }}
Weight: {{ $row['weight'] }}
Selling: {{ $row['selling_cost'] }}
Purchase: {{ $row['purchase_cost'] }}