@if (
isset($category->extra->items) &&
$category->extra->items == 1
)
{{ $category->extra->name }}
@else
{{ $product->name }}
@endif
|
@if (
isset($category->extra->deposit) &&
$category->extra->deposit == 1
)
{!! Form::number(
'data[Order][OrdersItem][' . $product->id. '][actual_price]',
(
isset($data->Order->OrdersItem->{$product->id}->actual_price) ?
$data->Order->OrdersItem->{$product->id}->actual_price :
null
),
[
'step' => '0.01',
'placeholder' => amount(
($product->actual_price * $currency->exchange),
[
'from' => $currency->id,
'to' => $currency->id
]
),
'data-original' => $product->actual_price,
'min' => 0,
'class' => 'form-control text-right actual_price'
]
) !!}
@endif
|
@if ($category->extra->priced == 1)
{!! Form::number(
'data[Order][OrdersItem][' . $product->id. '][price]',
(
isset($data->Order->OrdersItem->{$product->id}->price) ?
$data->Order->OrdersItem->{$product->id}->price :
null
),
[
'placeholder' => amount(
($product->price * $currency->exchange),
[
'from' => $currency->id,
'to' => $currency->id
]
),
'step' => '0.01',
'data-original' => $product->price,
'min' => 0,
'data-price' => (
($category->extra->priced == 1) ?
$product->price : null
),
'class' => 'form-control text-right price'
]
) !!}
@endif
|
@if (
(isset($edit) && $edit == true) ||
!isset($product->available) ||
(
isset($product->available) &&
$product->available > 0
)
)
{!! Form::hidden(
'data[Order][OrdersItem][' . $product->id . '][product_id]',
$product->id
) !!}
{!! Form::number(
'data[Order][OrdersItem][' . $product->id . '][qty]',
(
isset($data->Order->OrdersItem->{$product->id}->qty) ?
$data->Order->OrdersItem->{$product->id}->qty :
null
),
[
'placeholder' => t('qty'),
'min' => 0,
'data-price' => (
$category->extra->priced == 1 ?
($product->price * $currency->exchange) : null
),
'data-price-ref' => '#field-data-order-ordersitem-' . $product->id . '-price',
'max' => ((!isset($edit) ||!$edit) && isset($product->available) ? $product->available : null),
'class' => 'form-control qty text-center'
]
) !!}
|
@else
@t('N/A') |
@endif
|
{!! Form::text(
'data[Order][OrdersItem][' . $product->id. '][description]',
(
isset($data->Order->OrdersItem->{$product->id}->description) ?
$data->Order->OrdersItem->{$product->id}->description :
null
),
[
'placeholder' => __('Short description'),
'class' => 'form-control'
]
) !!}
|