Current File : /home/itiffy/public_html/resources/views/admin/gatway/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($gatway, array('class' => 'form-horizontal', 'id' => 'form-with-validation', 'method' => 'PATCH', 'route' => array(config('quickadmin.route').'.paymentgateway.update', $gatway->id))) !!}
<div class="form-group">
{!! Form::label('mode', 'Mode*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::select('mode', array('sandbox'=>'Sandbox','production'=>'Production'),old($gatway->publish_key),array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('account_number', 'Account Number*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('account_number', old('account_number',$gatway->account_number), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('publish_key', 'Publish Key*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('publish_key', old('publish_key',$gatway->publish_key), array('class'=>'form-control')) !!}
</div>
</div><div class="form-group">
{!! Form::label('private_key', 'Private key*', array('class'=>'col-sm-2 control-label')) !!}
<div class="col-sm-10">
{!! Form::text('private_key', old('private_key',$gatway->private_key), 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').'.paymentgateway.index', trans('quickadmin::templates.templates-view_edit-cancel'), null, array('class' => 'btn btn-default')) !!}
</div>
</div>
{!! Form::close() !!}
@endsection