Current File : /home/itiffy/public_html/resources/views/admin/contactformdb/edit.blade.php |
@extends('admin.layouts.master')
@section('content')
<div class="row">
<div class="col-sm-10 col-sm-offset-2">
<h1>{{ trans('quickadmin::templates.templates-view_edit-edit') }}</h1>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
{!! implode('', $errors->all('<li class="error">:message</li>')) !!}
</ul>
</div>
@endif
</div>
</div>
{!! Form::model($contactformdb, array('class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.contactformdb.update', $contactformdb->id))) !!}
<div class="form-group">
{!! Form::label('name', 'Name*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('name', old('name',$contactformdb->name), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('email', 'Email*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('email', old('email',$contactformdb->email), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('phone_number', 'Phone Number*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('phone_number', old('phone_number',$contactformdb->phone_number), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('domain_name', 'Website Or Domain Name', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('domain_name', old('domain_name',$contactformdb->domain_name), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('comment', 'Comment*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::textarea('comment', old('comment',$contactformdb->comment), array('class'=>'form-control')) !!}
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
{!! Form::submit(trans('quickadmin::templates.templates-view_edit-update'), array('class' => 'btn btn-primary')) !!}
{!! link_to_route(config('quickadmin.route').'.contactformdb.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!}
</div>
</div>
{!! Form::close() !!}
@endsection