@php
$quantity = isset($quantity) ? $quantity: 1;
$multiplier = isset($multiplier) ? $multiplier: 1;
$unit_id = isset($unit_id) ? $unit_id: null;
@endphp
@foreach($variations as $variation)
@if($product->type == 'variable')
{{ $product->name }} ({{ $variation->name }}) - {{ $variation->sub_sku }}
@else
{{ $product->name }} - {{ $variation->sub_sku }}
@endif
|
{!! Form::text('quantity[]', @num_format($quantity), ['class' => 'form-control col-sm-12 input-sm quantity input_number mousetrap', 'required', 'style '=> "width: 77px"]); !!}
@if(!empty($sub_units))
@else
{{ $product->unit->short_name }}
@endif
|
{{ $variation->default_purchase_price }}
|
{{$variation->default_purchase_price * $quantity * $multiplier}}
|
|
@endforeach