• {{ __('Admin') }}
  • {{ __('Products') }}
  • {{ __('Detail') }}
  • Create

    {!!Form::open(['route' => 'admin.products.store', 'method' => 'post', 'enctype' => 'multipart/form-data'])!!}
    {{Form::label('title', 'Title', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('title', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900 ', 'required' => true.($errors->has('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', null, ['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', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $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', null, ['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, true)}} {{Form::label('published', 'Published?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {{Form::label('price', 'Price', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('price', null, ['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('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('event_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', null, ['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()!!}