@extends('layouts.master') @section('title', 'PetroERP- An ERP for Petrol Pumps') @section('content')
Country

Update Country

{{-- @if (session('error')) {{ session('error') }} @endif @if (session('success')) {{ session('success') }} @endif --}} {!! Form::open(['action' => ['CountriesController@update', $country->id], 'method' => 'POST', 'class' => 'form-horizontal space-top']) !!}
{{Form::label('name', 'Name', ['class'=>'required col-md-2'])}}
{{Form::text('name', $country->name, ['class'=>'form-control', 'placeholder'=>'Country Name','required'])}} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{Form::label('shortName', 'Short Name', ['class'=>'required col-md-2'])}}
{{Form::text('shortName', $country->shortName, ['class'=>'form-control', 'placeholder'=>'shortName', 'data-parsley-length'=>'[2, 2]', 'required'])}} @if ($errors->has('shortName')) {{ $errors->first('shortName') }} @endif
{{Form::label('phoneCode', 'Phone Code (+)', ['class'=>'required col-md-2'])}}
{{Form::text('phoneCode', $country->phoneCode, ['class'=>'form-control', 'placeholder'=>'Phone Code','required'])}} @if ($errors->has('phoneCode')) {{ $errors->first('phoneCode') }} @endif
{{Form::hidden('_method', 'PUT')}} {{Form::submit('Update', ['class'=>'btn btn-primary'])}} {{Form::reset('Reset', ['class'=>'btn btn-primary'])}}
{!! Form::close() !!}
@endsection