@extends('admin._layouts.master') @section('content') @php $tabIndex = 1; @endphp
{!! html()->model($product)->form($method, $action)->novalidate(true)->acceptsFiles()->open() !!}

@transTitleCase('ui.create.title', [ 'model_name' => trans('models.product.model_name') ])

@formGroup( transTitleCase('models.generic.name'), html()->text('name')->attribute('tabindex', $tabIndex++), $product->name ) @formGroup( transTitleCase('models.category.model_name'), html()->select('category_ids[]', $categories, $productCategoryIds)->id('category-select')->attribute('tabindex', $tabIndex++)->multiple(), implode(", ", Arr::only($categories->toArray(), $productCategoryIds)) ) @formGroup( transTitleCase('models.generic.tracking_section'), html()->select('tracking_section_id', $trackingSections, $product->tracking_section_id)->attribute('tabindex', $tabIndex++), ) @formGroup( transTitleCase('models.product.uom'), html()->select('uom', $uomList)->attribute('tabindex', $tabIndex++), $product->uom ) @formGroup( transTitleCase('models.product.description'), html()->textarea('description')->attribute('tabindex', $tabIndex++)->attribute('rows', 3), $product->description ) @formGroup( transTitleCase('models.product.barcode'), html()->text('barcode')->addClass('non-submitable')->attribute('tabindex', $tabIndex++), $product->barcode )

@transTitleCase('models.product.image')

{!! Form::label('file', transTitleCase('models.product.image') . ' (800x450)') !!}
@if($product->photo)
  GÖRSELİ SİL @endif

@transTitleCase('models.product.price')

@formGroup( transTitleCase('generic.financial.ingredient_costs'), html()->number('ingredient_costs', $product->ingredient_costs, 0, null, 0.01)->attribute('tabindex', $tabIndex++)->disabled(), $product->ingredient_costs, true, [ 'prepend-text' => currencySymbol('lg'), 'class' => 'advanced-input', 'style' => 'display: none;' ] ) @formGroup( transTitleCase('generic.financial.base_costs'), html()->number('base_costs', $product->base_costs, 0, null, 0.01)->attribute('tabindex', $tabIndex++), $product->base_costs, true, [ 'prepend-text' => currencySymbol('lg'), 'class' => 'advanced-input', 'style' => 'display: none;' ] ) @formGroup( transTitleCase('generic.financial.base_price'), html()->number('price', $product->price, 0, null, 0.01)->attribute('tabindex', $tabIndex++), $product->price, true, [ 'prepend-text' => currencySymbol('lg'), 'class' => 'advanced-input', 'style' => 'display: none;' ] ) @formGroup( transTitleCase('models.stock_item.vat'), html()->number('vat_pct', null, 0, null, 0.01)->attribute('tabindex', $tabIndex++), $product->vat_pct, true, ['prepend-icon' => 'percent'] )
{!! html()->select('service_fee_type_id', $serviceFeeTypes, $product->service_fee_type_id)->attribute('tabindex', $tabIndex++)->addClass('form-control') !!}
{!! html()->number('service_fee', null, 0, null, 0.01)->attribute('tabindex', $tabIndex++)->addClass('form-control')->disabled() !!}
{!! html()->number('gross_price', null, 0, null, 0.01)->addClass('form-control')->attribute('tabindex', $tabIndex++) !!}

@transTitleCase('models.product.auto_stock_tracking')

  is_stock_enabled ? 'checked' : '') }} data-toggle="toggle" data-on="@transTitleCase('ui.toggle.on')" data-off="@transTitleCase('ui.toggle.off')" data-size="mini" data-onstyle="success" data-offstyle="default">

@trans('Specify how much of what stock item(s) will be deducted when one unit of this product is sold. Specified amounts will be deducted automatically on every sale of this product.')

@include('admin.restaurant.products._partials.item') @foreach($mixins as $id => $mixin) @include('admin.restaurant.products._partials.item') @endforeach
@transTitleCase('models.stock_item.model_name') @transTitleCase('models.stock_item.amount')
  @transTitleCase('ui.listing.add_new_row')
@if($product->getirVersion)

KANALLARDA BU ÜRÜN

{{ $product->getirVersion->name }}
{{ $product->getirVersion->price }}
{{ $product->getirVersion->description }}
@endif
  @transTitleCase('ui.create.back_to_index')
@if($editing) @else @endif
{!! html()->form()->close() !!}
@if(!$creating)

@transTitleCase('models.generic.specs')

@foreach($product->specs as $spec) {!! view('admin.restaurant.products._partials.spec')->with('product', $product)->with('spec', $spec) !!} @endforeach
  @transTitleCase('.add_new_spec')
@endif
@endsection @push('scripts') @endpush