@extends('admin.layouts.master') @section('content') @can('view', $product) @include('admin.partials._product_widget') @endcan {!! Form::open(['route' => 'admin.stock.inventory.storeWithVariant', 'files' => true, 'id' => 'form', 'data-toggle' => 'validator']) !!} {{-- @if (isset($product)) {{ Form::hidden('product_id', $product->id) }} @elseif($inventory) {{ Form::hidden('product_id', $inventory->product_id) }} @endif --}} @if (isset($inventory)) @php $product = $inventory->product; @endphp @endif
{{ trans('app.sl_number') }} | {{ trans('app.form.variants') }} | {{ trans('app.form.image') }} | {{ trans('app.form.sku') }} | @if (config('system_settings.show_item_conditions')){{ trans('app.form.condition') }} | @endif{{ trans('app.form.stock_quantity') }} | {{ trans('app.form.purchase_price') }} | {{ trans('app.form.sale_price') }} | {{ trans('app.form.offer_price') }} | |
---|---|---|---|---|---|---|---|---|---|
{{ $i + 1 }}
|
@foreach ($combination as $attrId => $attrValue)
{{ Form::hidden('variants[' . $i . '][' . $attrId . ']', key($attrValue)) }}
{{ $attributes[$attrId] . ' : ' . current($attrValue) }}
{{ $attrValue !== end($combination) ? '; ' : '' }}
@endforeach
|
|
{!! Form::text('sku[' . $i . ']', null, ['class' => 'form-control sku', 'placeholder' => trans('app.placeholder.sku'), 'required']) !!}
|
@if (config('system_settings.show_item_conditions'))
{!! Form::select('condition[' . $i . ']', ['New' => trans('app.new'), 'Used' => trans('app.used'), 'Refurbished' => trans('app.refurbished')], null, ['class' => 'form-control condition', 'required']) !!}
|
@endif
{!! Form::number('stock_quantity[' . $i . ']', null, ['class' => 'form-control quantity', 'placeholder' => trans('app.placeholder.stock_quantity'), 'required']) !!}
|
{!! Form::number('purchase_price[' . $i . ']', null, ['class' => 'form-control purchasePrice', 'step' => 'any', 'placeholder' => trans('app.placeholder.purchase_price')]) !!}
|
{!! Form::number('sale_price[' . $i . ']', null, ['class' => 'form-control salePrice', 'step' => 'any', 'placeholder' => trans('app.placeholder.sale_price'), 'required']) !!}
|
{!! Form::number('offer_price[' . $i . ']', null, ['class' => 'form-control offerPrice', 'step' => 'any', 'placeholder' => trans('app.placeholder.offer_price')]) !!}
|
|
* {{ trans('app.form.required_fields') }}