@foreach($products as $product) @if(isset($product->product_breakdown)) @foreach($product->product_breakdown as $pb) @endforeach @endif @endforeach {{--
Product Name Product Code SKU Category Unit Type Status Discontinued Date CAS NO. Regulation Regulation Limit Stock Alert Reorder Level Description Stock
{{ $product->name}} {{ $product->code}} {{ $product->sku}} @if(isset($product->category_id)) {{ $product->product_category->name}} @endif @if(isset($product->unit_id)){{ $product->product_unit->name }}@endif @if(isset($product->type_id)){{ $product->product_type->name }}@endif {{ $product->status }} {{ $product->discontinued_date }} {{ $product->cas_no }} {{ $product->regulated }} {{ $product->regulated_limit }} {{ isset($product->branches()->where('branch_id', session('branch_id'))->first()->alert_quantity)?$product->branches()->where('branch_id', session('branch_id'))->first()->alert_quantity:'' }} {{ isset($product->branches()->where('branch_id', session('branch_id'))->first()->reorder_level)?$product->branches()->where('branch_id', session('branch_id'))->first()->reorder_level:'' }} {{ $product->description}} {{ $product->stock_quantity}}
{{ __('PRODUCT BREAKDOWN') }}
{{ __('Supplier') }} {{ __('Delivery Date') }} {{ __('Delivery Receipt No.') }} {{ __('Sales Invoice') }} {{ __('Batch No./ Lot No.') }} {{ __('Expiry Date') }} {{ __('Location') }} {{ __('Storage Equipment') }} {{ __('Quantity') }} {{ __('Cost') }}
@if(isset($pb->adjustment->supplier->name)) {{ $pb->adjustment->supplier->name }} @elseif(isset($pb->purchase->supplier->name)) {{ $pb->purchase->supplier->name }} @endif {{ $pb['delivery_receipt_no'] }} {{ $pb['sales_invoice_number'] }} {{ $pb['batch_no'] }} {{ $pb['expiry_date'] }} @if(isset($pb->adjustment->location->location)) {{$pb->adjustment->location->location}} @elseif(isset($pb->purchase->location->location)) {{$pb->purchase->location->location}} @endif {{-- {{ isset($product_break->adjustment->location->location)?$product_break->adjustment->location->location:(isset($product_break->purchase->location->location) ? $product_break->purchase->location->location : '')}} --}} @if(isset($pb->adjustment->storage_equipment->equipment->name)) {{$pb->adjustment->storage_equipment->equipment->name}} @elseif(isset($pb->purchase->storage_equipment->equipment->name)) {{$pb->purchase->storage_equipment->equipment->name}} @endif {{ $pb['stock_remaining'] }} {{ $pb['cost'] }}
resources\views\admin\inventory\products\_export.blade.php --}}