@extends('backend.layouts.app') @section('title', __('labels.backend.bundles.title').' | '.app_name()) @section('content') {!! Form::open(['method' => 'POST', 'route' => ['admin.bundles.store'], 'files' => true,]) !!}

@lang('labels.backend.bundles.create')

{!! Form::label('courses',trans('labels.backend.bundles.fields.courses'), ['class' => 'control-label']) !!} {!! Form::select('courses[]', $courses, old('courses'), ['class' => 'form-control select2 js-example-placeholder-multiple', 'multiple' => 'multiple']) !!}
{!! Form::label('category_id',trans('labels.backend.bundles.fields.category'), ['class' => 'control-label']) !!} {!! Form::select('category_id', $categories, old('category_id'), ['class' => 'form-control select2 js-example-placeholder-single', 'multiple' => false]) !!}
{!! Form::label('title', trans('labels.backend.bundles.fields.title').' *', ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.fields.title'), 'required' => false]) !!}
{!! Form::label('slug', trans('labels.backend.bundles.fields.slug'), ['class' => 'control-label']) !!} {!! Form::text('slug', old('slug'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.slug_placeholder')]) !!}
{!! Form::label('description', trans('labels.backend.bundles.fields.description'), ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description'), ['class' => 'form-control ', 'placeholder' => trans('labels.backend.bundles.fields.description')]) !!}
{!! Form::label('price', trans('labels.backend.bundles.fields.price').' (in '.$appCurrency["symbol"].')', ['class' => 'control-label']) !!} {!! Form::number('price', old('price'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.fields.price'), 'pattern' => "[0-9]"]) !!}
{!! Form::label('course_image', trans('labels.backend.bundles.fields.course_image'), ['class' => 'control-label']) !!} {!! Form::file('course_image', ['class' => 'form-control', 'accept' => 'image/jpeg,image/gif,image/png']) !!} {!! Form::hidden('course_image_max_size', 8) !!} {!! Form::hidden('course_image_max_width', 4000) !!} {!! Form::hidden('course_image_max_height', 4000) !!}
{!! Form::label('start_date', trans('labels.backend.bundles.fields.start_date').' (yyyy-mm-dd)', ['class' => 'control-label']) !!} {!! Form::text('start_date', old('start_date'), ['class' => 'form-control date','pattern' => '(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))', 'placeholder' => trans('labels.backend.bundles.fields.start_date').' (Ex . 2019-01-01)', 'autocomplete' => 'off']) !!}
{!! Form::hidden('published', 0) !!} {!! Form::checkbox('published', 1, false, []) !!} {!! Form::label('published', trans('labels.backend.bundles.fields.published'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::hidden('featured', 0) !!} {!! Form::checkbox('featured', 1, false, []) !!} {!! Form::label('featured', trans('labels.backend.bundles.fields.featured'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::hidden('trending', 0) !!} {!! Form::checkbox('trending', 1, false, []) !!} {!! Form::label('trending', trans('labels.backend.bundles.fields.trending'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::hidden('popular', 0) !!} {!! Form::checkbox('popular', 1, false, []) !!} {!! Form::label('popular', trans('labels.backend.bundles.fields.popular'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::hidden('free', 0) !!} {!! Form::checkbox('free', 1, false, []) !!} {!! Form::label('free', trans('labels.backend.bundles.fields.free'), ['class' => 'checkbox control-label font-weight-bold']) !!}
{!! Form::label('meta_title',trans('labels.backend.bundles.fields.meta_title'), ['class' => 'control-label']) !!} {!! Form::text('meta_title', old('meta_title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.fields.meta_title')]) !!}
{!! Form::label('meta_description',trans('labels.backend.bundles.fields.meta_description'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_description', old('meta_description'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.fields.meta_description')]) !!}
{!! Form::label('meta_keywords',trans('labels.backend.bundles.fields.meta_keywords'), ['class' => 'control-label']) !!} {!! Form::textarea('meta_keywords', old('meta_keywords'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.bundles.fields.meta_keywords')]) !!}
{!! Form::submit(trans('strings.backend.general.app_save'), ['class' => 'btn btn-lg btn-danger']) !!}
{!! Form::close() !!} @stop @push('after-scripts') @endpush