@extends('adminlte::layouts.app') @section('htmlheader_title') {{ trans('Bike Update') }} @endsection @section('contentheader_title') {{ trans('Bike Update') }} @endsection @section('main-content')
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
{!! Form::open(array('url' => ('admin/bike/store'),'method'=>'POST', 'files'=>true)) !!}
{{--

{{ trans('Bike') }} Update

--}}
{!! Form::label('brand', 'Brand *') !!} {!! Form::select('brand_id', [null=>''] + $brands, $bike->brand_id,['class' => 'form-control brand']) !!}
{!! Form::label('name', 'Name *') !!} {!! Form::text('name', $bike->name, array('class' => 'form-control','placeholder'=>'Enter name','id'=>'name')) !!}

{!! Form::label('review', 'Review *') !!} {!! Form::textarea('review',$bike->review,['class'=>'form-control review', 'rows' => 6, 'cols' => 40,'placeholder'=>'Enter review']) !!}
{!! Form::label('suspension', 'Suspension *') !!} {!! Form::textarea('suspension',$bike->suspension,['class'=>'form-control suspension', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter suspension']) !!}
{!! Form::label('tyres', 'Tyres *') !!} {!! Form::textarea('tyres',$bike->tyres,['class'=>'form-control tyres', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter tyres']) !!}
{!! Form::label('brakes', 'Brakes *') !!} {!! Form::textarea('brakes',$bike->brakes,['class'=>'form-control brakes', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter brakes']) !!}
{!! Form::label('dimensions', 'Dimensions *') !!} {!! Form::textarea('dimensions',$bike->dimensions,['class'=>'form-control dimensions', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter dimensions']) !!}
{!! Form::label('fuel_tank', 'Fuel Tank *') !!} {!! Form::text('fuel_tank', $bike->fuel_tank, array('class' => 'form-control','placeholder'=>'Enter fuel tank','id'=>'fuel_tank')) !!}
{!! Form::label('engine', 'Engine Details *') !!} {!! Form::textarea('engine',$bike->engine,['class'=>'form-control engine', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter engine']) !!}
{!! Form::label('engine_type', 'Engine Type *') !!} {!! Form::textarea('engine_type',$bike->engine_type,['class'=>'form-control engine_type', 'rows' => 3, 'cols' => 40,'placeholder'=>'Enter engine type']) !!}
{!! Form::label('displacement', 'Displacement *') !!} {!! Form::text('displacement', $bike->displacement, array('class' => 'form-control','placeholder'=>'Enter displacement','id'=>'displacement')) !!}
{!! Form::label('bore_stroke', 'Bore & Stroke *') !!} {!! Form::text('bore_stroke', $bike->bore_stroke, array('class' => 'form-control','placeholder'=>'Enter bore stroke','id'=>'bore_stroke')) !!}
{!! Form::label('power', 'Maximum Power (PS/RPM) *') !!} {!! Form::text('power', $bike->power, array('class' => 'form-control','placeholder'=>'Enter Maximum Power (PS/RPM)','id'=>'power')) !!}
{!! Form::label('torque', 'Maximum Torque (NM/RPM) *') !!} {!! Form::text('torque', $bike->torque, array('class' => 'form-control','placeholder'=>'Enter Maximum Torque (NM/RPM)','id'=>'torque')) !!}
{!! Form::label('gearbox', 'Gearbox *') !!} {!! Form::text('gearbox', $bike->gearbox, array('class' => 'form-control','placeholder'=>'Enter gearbox','id'=>'gearbox')) !!}
{!! Form::label('final_drive', 'Final Drive *') !!} {!! Form::text('final_drive', $bike->final_drive, array('class' => 'form-control','placeholder'=>'Enter final drive','id'=>'final_drive')) !!}
{!! Form::label('ticket_price', 'Ticket price *') !!} {!! Form::text('ticket_price', $bike->ticket_price, array('class' => 'form-control','placeholder'=>'Enter ticket price','id'=>'ticket_price')) !!}

@if(count($bikefeatures) > 0) @foreach($bikefeatures as $key => $bikefeature) @if($key == 0)
{!! Form::label('title', 'Features Title') !!} {!! Form::text('title[]', $bikefeature->title, array('class' => 'form-control','placeholder'=>'Enter title','id'=>'title')) !!}
{!! Form::label('features_image', 'Features Image') !!}
@if($bikefeature->image != '') {{ trans('') }} @endif
{!! Form::label('details', 'Features Details') !!} {!! Form::textarea('details[]',$bikefeature->details,['class'=>'form-control details', 'rows' => 7, 'cols' => 40,'placeholder'=>'Enter details', 'id' => 'details_'.$key]) !!}
@else
{!! Form::label('title', 'Features Title') !!} {!! Form::text('title[]', $bikefeature->title, array('class' => 'form-control','placeholder'=>'Enter title','id'=>'title')) !!}
{!! Form::label('features_image', 'Features Image') !!}
@if($bikefeature->image != '') {{ trans('') }} @endif
{!! Form::label('details', 'Features Details') !!} {!! Form::textarea('details[]',$bikefeature->details,['class'=>'form-control details', 'rows' => 7, 'cols' => 40,'placeholder'=>'Enter details', 'id' => 'details_'.$key]) !!}
@endif @endforeach @else
{!! Form::label('title', 'Features Title') !!} {!! Form::text('title[]', null, array('class' => 'form-control','placeholder'=>'Enter title','id'=>'title')) !!}
{!! Form::label('features_image', 'Features Image') !!}
{!! Form::label('details', 'Features Details') !!} {!! Form::textarea('details[]',null,['class'=>'form-control details', 'rows' => 7, 'cols' => 40,'placeholder'=>'Enter details', 'id' => 'details']) !!}
@endif
{!! Form::label('image', 'Main image*') !!}
{{ trans('') }}

{!! Form::label('bike_image', 'Slider Images *') !!}
@if(count($bikeimage['bike_image']) > 0)
@endif
{!! Form::label('status', 'Status:') !!} @if ($bike->status == 1) {!! Form::radio('status', '1',true,['class' => 'minimal']) !!} Active   {!! Form::radio('status', '0','',['class' => 'minimal']) !!} InActive   @else {!! Form::radio('status', '1','',['class' => 'minimal']) !!} Active   {!! Form::radio('status', '0',true,['class' => 'minimal']) !!} InActive   @endif
{!! Form::close() !!}
@include('adminlte::layouts.bike.validation') @endsection @push('scripts') @endpush