{{-- Hidden fields --}} @if (isset($product->id) && $product->id) @endif @if (isset($product->parent_id) && $product->parent_id) @endif
{{-- Product Name & Description --}}
{!! Form::label('data[Product][name]', t('Name')) !!} {!! Form::text( 'data[Product][name]', (isset($product->name) ? $product->name : null), [ 'placeholder' => t('Product name'), 'data-error' => t('This field is required'), 'class' => 'form-control editable', ( isset($category->extra->items) && $category->extra->items != 1 ? 'required' : null ) ] ) !!}
@if (isset($settings->content->tiers) && $settings->content->tiers)
{!! Form::label('data[Product][tier]', t('Group')) !!} {!! Form::select( 'data[Product][tier]', numbers(['min' => 1, 'max' => 5, 'format' => 'Group %s']), (isset($product->tier) ? $product->tier : null) ) !!}
@endif {{-- Description --}}
{!! Form::label('data[Product][name]', t('Description')) !!} {!! Form::textarea( 'data[Product][description]', emoji2unicode(html((isset($product->description) ? $product->description : null))), [ 'placeholder' => t('Description'), 'class' => 'form-control editable wysiwyg' ] ) !!}
{!! Form::label( 'data[Product][terms]', t('Terms & Conditions') ) !!} {!! Form::text( 'data[Product][terms]', (isset($product->terms) ? $product->terms : null), [ 'placeholder' => t('Terms & Conditions'), 'class' => 'form-control editable' ] ) !!}
{!! Form::label( 'data[Product][custom_price_label]', t('Price per person') ) !!} {!! Form::text( 'data[Product][custom_price_label]', (isset($product->custom_price_label) ? $product->custom_price_label : null), [ 'class' => 'form-control editable' ] ) !!}
@if (isset($category->extra->place) && $category->extra->place)
{!! Form::label( 'data[Product][zone]', t('Product Zone') ) !!} {!! Form::select( 'data[Product][zone_id]', $zones, (isset($product->zone_id) ? $product->zone_id : null), [ 'class' => 'form-control editable', 'empty' => true ] ) !!}
{!! Form::label('data[Product][color]', __('Color')) !!} {!! Form::colorSelect( 'data[Product][color]', [], (isset($product->color) ? $product->color : null), ['empty' => true, 'class' => 'form-control color-picker'] ) !!}
@endif
{!! Form::label( 'data[Product][extra][link]', t('Link') ) !!} {!! Form::text( 'data[Product][extra][link]', (isset($product->extra->link) ? $product->extra->link : null), [ 'class' => 'form-control editable', 'placeholder' => 'https://example.com/' ] ) !!}
{!! Form::label( 'data[Product][external_id]', t('External ID') ) !!} {!! Form::text( 'data[Product][external_id]', (isset($product->external_id) ? $product->external_id : null), [ 'class' => 'form-control editable' ] ) !!}
@if ( isset($settings->content->show_depends_from) && $settings->content->show_depends_from )
{!! Form::label( 'data[Product][extra][depends_from]', t('Depends from') ) !!}
{!! Form::hidden('data[Product][extra][depends_from]',0) !!} @foreach ($category_products as $depend_id => $depend_name)
{!! Form::checkbox( 'data[Product][extra][depends_from][]', $depend_id, ( isset($product->extra->depends_from) && ( $product->extra->depends_from == $depend_id || ( is_array($product->extra->depends_from) && in_array($depend_id, (array)$product->extra->depends_from) ) ? true : false ) ), ['id' => 'depends-from-id-' . $depend_id] ) !!}
@endforeach
@endif
@if ($category->extra->priced)
@if ($category->extra->deposit)
{!! Form::label( 'data[Product][price]', t('Price to pay now') ) !!} {!! Form::number( 'data[Product][price]', (isset($product->price) ? $product->price : null), [ 'class' => 'form-control editable', 'step' => '0.01' ] ) !!}
@if($venue->type == 'SubVenue') {!! Form::label( 'data[Product][actual_price]', t('Pay later price') ) !!} @else {!! Form::label( 'data[Product][actual_price]', t('Total Price') ) !!} @endif {!! Form::number( 'data[Product][actual_price]', (isset($product->actual_price) ? $product->actual_price : null), [ 'class' => 'form-control editable', 'step' => '0.01' ] ) !!}
@else
{!! Form::label( 'data[Product][price]', t('Price') ) !!} {!! Form::number( 'data[Product][price]', (isset($product->price) ? $product->price : null), [ 'class' => 'form-control editable', 'step' => '0.01' ] ) !!}
@endif
@endif
{!! Form::label( 'data[Product][min_per_order]', t('Min Qty') ) !!} {!! Form::number( 'data[Product][min_per_order]', (isset($product->min_per_order) ? $product->min_per_order : null), [ 'class' => 'form-control editable', 'placeholder' => t('1') ] ) !!}
{!! Form::label( 'data[Product][max_per_order]', t('Max Qty') ) !!} {!! Form::number( 'data[Product][max_per_order]', (isset($product->max_per_order) ? $product->max_per_order : null), [ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ] ) !!}
@if ($category->sub_items)
{!! Form::label( 'data[Product][min_sub_items_selected]', t('Min Sub Items') ) !!} {!! Form::number( 'data[Product][min_sub_items_selected]', (isset($product->min_sub_items_selected) ? $product->min_sub_items_selected : null), [ 'class' => 'form-control editable', ] ) !!}
{!! Form::label( 'data[Product][max_sub_items_selected]', t('Max Sub Items') ) !!} {!! Form::number( 'data[Product][max_sub_items_selected]', (isset($product->max_sub_items_selected) ? $product->max_sub_items_selected : null), [ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ] ) !!}
@endif
{!! Form::label( 'data[Product][qty]', t('Qty') ) !!} {!! Form::number( 'data[Product][qty]', (isset($product->qty) ? $product->qty : null), array_merge([ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ], ($category->finite ? ['required'] : [])) ) !!}
@if ($category->extra->priced)
{!! Form::label('data[Product][type]', t('Type')) !!} {!! Form::select( 'data[Product][type]', [ 'buy' => __('Booking only'), 'both' => __('Booking & Enquiry'), 'enquiry' => __('Enquiry only'), 'members' => __('Members Prices') ], (isset($product->type) ? $product->type : null), [ 'class' => 'form-control editable' ] ) !!}
@endif @if ($category->capacity)
{!! Form::label('data[Product][capacity]', t('Capacity')) !!} @if($venue->type == 'Bowling') @elseif ($venue->type == 'Hotel') @else @endif {!! Form::number( 'data[Product][capacity]', (isset($product->capacity) ? $product->capacity : null), [ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ] ) !!}
{!! Form::label('data[Product][duration]', t('Duration (minutes)')) !!} @if($venue->type == 'Bowling') @elseif ($venue->type == 'Hotel') @else @endif {!! Form::number( 'data[Product][duration]', (isset($product->duration) ? $product->duration : null), [ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ] ) !!}
@if (isset($category->extra->pausable) && $category->extra->pausable)
{!! Form::label('data[Product][extra][slots]', t('Sub slots')) !!} {!! Form::number( 'data[Product][extra][slots]', (isset($product->extra->slots) ? $product->extra->slots : null), [ 'class' => 'form-control editable', 'placeholder' => 1, 'step' => 1, 'min' => 1 ] ) !!}
{!! Form::label('data[Product][extra][pause]', t('Pause')) !!} {!! Form::number( 'data[Product][extra][pause]', (isset($product->extra->pause) ? $product->extra->pause : null), [ 'class' => 'form-control editable', 'step' => 1, 'min' => 1 ] ) !!}
@endif
{!! Form::label('data[Product][extra][offset]', t('Offset (minutes)')) !!} {!! Form::number( 'data[Product][extra][offset]', (isset($product->extra->offset) ? $product->extra->offset : null), [ 'class' => 'form-control editable', 'placeholder' => 0, 'min' => 0, 'step' => 1 ] ) !!}
@endif @if ($category->grouped_tickets)
{!! Form::label('data[Product][extra][grouped_tickets]', t('Ticket grouping')) !!} {!! Form::number( 'data[Product][extra][grouped_tickets]', (isset($product->extra->grouped_tickets) ? $product->extra->grouped_tickets : null), [ 'class' => 'form-control editable', 'placeholder' => t('unlimited') ] ) !!}
@endif
{!! Form::checkbox( 'data[Product][unavailable]', 1, ($unavailable ? $unavailable : (isset($product->unavailable) ? $product->unavailable : false)) ) !!}
@if ($category->sub_items)

@t('Options')

@if (isset($product->Products)) @foreach ($product->Products as $i => $sub_product) @include( 'Plugins/Payment/Views/Elements/Product/sub_item', [ 'product' => $sub_product, 'group_id' => $product->id, 'i' => $i, 'category' => $category ] ) @endforeach @endif
@endif @if (isset($settings->content->nominal_management) && $settings->content->nominal_management)

@if (isset($settings->content->translations->nominals) && $settings->content->translations->nominals) {{ $settings->content->translations->nominals }} @else @t('Nominals') @endif

@if (isset($product->ProductNominal)) @foreach ($product->ProductNominal as $i => $nominal_product) @include( 'Plugins/Payment/Views/Elements/Nominal/item', [ 'data' => $nominal_product, 'nominals' => $nominals, 'i' => $i ] ) @endforeach @endif
@endif