@extends('admin.layouts.master') @section('content')

{{ trans('quickadmin::templates.templates-view_edit-edit') }}

@if ($errors->any())
    {!! implode('', $errors->all('
  • :message
  • ')) !!}
@endif
{!! Form::model($obj, array('files' => true, 'class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.piercingprice.update', $obj->id))) !!}
{!! Form::label('price', 'price*', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('price', old('price',$obj->price), array('class'=>'form-control')) !!}
{!! Form::label('name', 'name', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('name', old('name',$obj->name), array('class'=>'form-control')) !!}
{!! Form::label('intervals', 'intervals', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('intervals', old('intervals',$obj->intervals), array('class'=>'form-control')) !!}
{!! Form::label('piercingcatalog_id', 'piercingcatalog_id', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::select('piercingcatalog_id', $catalog, old('piercingcatalog_id',$obj->piercingcatalog_id), array('class'=>'form-control')) !!}
{!! Form::label('body', 'body', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::textarea('body', old('body',$obj->body), array('class'=>'form-control')) !!}
{!! Form::label('coef', 'coef', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::text('coef', old('coef',$obj->coef), array('class'=>'form-control')) !!}
{!! Form::label('picture', 'picture', array('class'=>'col-sm-2 control-label')) !!}
{!! Form::file('picture') !!} {!! Form::hidden('picture_w', 4096) !!} {!! Form::hidden('picture_h', 4096) !!}
{!! Form::submit(trans('quickadmin::templates.templates-view_edit-update'), array('class' => 'btn btn-primary')) !!} {!! link_to_route(config('quickadmin.route').'.catalogs.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!}
{!! Form::close() !!} @endsection