@extends('admin.layouts.layout') @section('css') @endsection @section('main')
{{$moduleName}}
@if($id) {!! Form::model($data, [ 'method' => 'PATCH', 'route' => [$route, $id], 'class' => 'form-horizontal', 'id'=>'userForm', 'enctype'=>'multipart/form-data' ]) !!} @else {!! Form::open(array('route' => $route,'method'=>'POST', 'enctype'=>'multipart/form-data','id'=>'userForm')) !!} @endif
{!! Form::label('title', 'Title *:',array('class'=>'col-md-3 col-form-label','for'=>'title'),false) !!}
{!! Form::text('title',null,['class'=>'form-control','placeholder'=>'Enter title','id'=>'title']) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('price', 'Price (INR) *:',array('class'=>'col-md-3 col-form-label','for'=>'price'),false) !!}
{!! Form::number('price',null,['class'=>'form-control','placeholder'=>'Enter price','id'=>'price','step'=>'0.01']) !!} @if ($errors->has('price')) {{ $errors->first('price') }} @endif
{!! Form::label('avatar', 'Image :',array('class'=>'col-md-3 col-form-label','for'=>'type'),false) !!}
Note: The image must be a file of type: jpeg, png, jpg.
@if($data->avatar) @endif
{!! Form::label('status', 'Status *:',array('class'=>'col-md-3 col-form-label','for'=>'status'),false) !!} @php($sta = (isset($data->status) && $data->status==1)?'checked':'') @php($std = (isset($data->status) && $data->status!=1)?'checked':'') @php($default_chk = (empty($sta) && empty($std))?'checked':'')
{!! Form::close() !!}
@endsection @section('scripts') @endsection