Books Bulk Import From CSV

{!! Form::label('isbn_number', 'ISBN Number', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('isbn_number', null, ["placeholder" => "", "class" => "form-control border-form","autofocus"]) !!} @include('includes.form_fields_validation_message', ['name' => 'isbn_number'])
@if(!isset($data['row']))
{!! Form::label('code', 'Code', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('code', null, ["placeholder" => "", "class" => "form-control border-form", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'code'])
{!! Form::label('start', 'Start', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::number('start', null, ["placeholder" => "", "class" => "form-control border-form","min" => "1", "onkeyup"=>"changeStartCode()", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'start'])
{!! Form::label('end', 'End', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::number('end', null, ["placeholder" => "", "class" => "form-control border-form", "min" => "1", "onkeyup"=>"changeEndCode()", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'end'])
{!! Form::label('start_preview', 'StartCode', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('start_preview', null, ["placeholder" => "", "class" => "form-control border-form", "readonly"]) !!} @include('includes.form_fields_validation_message', ['name' => 'start_preview'])
{!! Form::label('end_preview', 'EndCode', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('end_preview', null, ["placeholder" => "", "class" => "form-control border-form", "readonly"]) !!} @include('includes.form_fields_validation_message', ['name' => 'end_preview'])
{!! Form::label('total_copy', 'Total Quantity', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('total_copy', null, ["placeholder" => "", "class" => "form-control border-form", "readonly"]) !!} @include('includes.form_fields_validation_message', ['name' => 'total_copy'])
@endif
{!! Form::label('title', 'Book Name', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('title', null, ["placeholder" => "", "class" => "form-control border-form", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'title'])
{!! Form::label('sub_title', 'Sub Title', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('sub_title', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'sub_title'])
{!! Form::label('categories', 'Category', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('categories', $data['categories'], null, ['class' => 'form-control chosen-select', "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'faculty'])
{!! Form::label('edition', 'Edition', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::text('edition', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'edition'])
{!! Form::label('edition_year', 'Edition Year', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('edition_year', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'edition_year'])
{!! Form::label('language', 'Language', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('language', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'language'])
{!! Form::label('publisher', 'Publisher', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::text('publisher', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'publisher'])
{!! Form::label('publish_year', 'Publish Year', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('publish_year', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'publish_year'])
{!! Form::label('series', 'Series', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('series', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'series'])
{!! Form::label('author', 'Author', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::text('author', null, ["placeholder" => "", "class" => "form-control border-form", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'author'])
{!! Form::label('rack_location', 'Rack Location', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('rack_location', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'rack_location'])
{!! Form::label('price', 'Price', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::number('price', null, ["placeholder" => "", "class" => "form-control border-form", "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'price'])
{!! Form::label('total_pages', 'Page', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::number('total_pages', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'total_pages'])
{!! Form::label('source', 'Source', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('source', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'source'])
@if(!isset($data['row'])) {!! Form::label('book_status', 'Books Status', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('book_status', $data['book_status'], null, ['class' => 'form-control', "required"]) !!} @include('includes.form_fields_validation_message', ['name' => 'book_status'])
@endif {!! Form::label('notes', 'Notes', ['class' => 'col-sm-1 control-label']) !!}
{!! Form::textarea('notes', null, ["placeholder" => "", "class" => "form-control border-form", 'rows'=>"1"]) !!} @include('includes.form_fields_validation_message', ['name' => 'notes'])
{!! Form::label('main_image', 'Book Image', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::file('main_image', null, ["placeholder" => "", "class" => "form-control border-form"]) !!} @include('includes.form_fields_validation_message', ['name' => 'main_image'])
@if (isset($data['row']) && $data['row']->image)
@endif