• {{ __('Admin') }}
  • {{ __('Products') }}
  • {{ __('Detail') }}
  • Edit Product {{$product->title}}

    {!!Form::model($product, ['route' => ['admin.products.update', ['product' => $product->slug]], 'method' => 'put'])!!}
    {{Form::label('title', 'Title', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('title', $product->title, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('menu_title') ? 'is-invalid' : null])}} @if($errors->has('title'))

    {{$errors->first('title')}}

    @endif
    {{Form::label('subtitle', 'Subtitle', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('subtitle', $product->subtitle, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900 ', 'required' => true, ($errors->has('subtitle') ? 'is-invalid' : null)])}} @if($errors->has('subtitle'))

    {{$errors->first('subtitle')}}

    @endif
    {{Form::label('slug', 'Slug', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('slug', $product->slug, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('slug') ? 'is-invalid' : null])}} @if($errors->has('slug'))

    {{$errors->first('slug')}}

    @endif
    {{Form::label('category_id', 'Category', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('category_id', $categories, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900 '.($errors->has('category_id') ? 'is-invalid' : null)])}} @if($errors->has('category_id'))

    {{$errors->first('category_id')}}

    @endif
    {{Form::label('description', 'Description', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::textarea('description', $product->description, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('description') ? 'is-invalid' : null])}} @if($errors->has('description'))

    {{$errors->first('description')}}

    @endif
    {{Form::checkbox('published', 1, $product->published)}} {{Form::label('published', 'Published?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {{Form::checkbox('is_sellable', 1, $product->is_sellable)}} {{Form::label('is_sellable', 'Is Sellable?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {{Form::label('cost', 'Cost', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('cost', $product->cost, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('cost') ? 'is-invalid' : null])}} @if($errors->has('cost'))

    {{$errors->first('cost')}}

    @endif
    {{Form::label('price', 'Price', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('price', $product->price, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('price') ? 'is-invalid' : null])}} @if($errors->has('price'))

    {{$errors->first('price')}}

    @endif
    {{Form::label('field_type_id', 'Field type', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('field_type_id', $field_types, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900 '.($errors->has('field_type_id') ? 'is-invalid' : null)])}} @if($errors->has('field_type_id'))

    {{$errors->first('field_type_id')}}

    @endif
    {{Form::label('quantity_on_hand', 'Quantity On Hand', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('quantity_on_hand', $product->quantity_on_hand, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('quantity_on_hand') ? 'is-invalid' : null])}} @if($errors->has('quantity_on_hand'))

    {{$errors->first('quantity_on_hand')}}

    @endif
    {{Form::label('event_id', 'Event', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('event_id', $events, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('evemt_id') ? 'is-invalid' : null, 'placeholder' => 'Select'])}} @if($errors->has('event_id'))

    {{$errors->first('event_id')}}

    @endif
    {{Form::label('sort', 'Sort', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::number('sort', $product->sort, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('sort') ? 'is-invalid' : null])}} @if($errors->has('sort'))

    {{$errors->first('sort')}}

    @endif
    {{Form::label('image', 'Image', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::file('image', null)}} @if($errors->has('image'))

    {{$errors->first('image')}}

    @endif
    {!!Form::close()!!}