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

Update Company

{!! Form::open(['action' => ['CompaniesController@update', $company->id], 'method' => 'POST', 'class' => 'form-horizontal space-top','enctype'=>'multipart/form-data']) !!}
{{Form::label('name', 'Name', ['class'=>'required col-md-2'])}}
{{Form::text('name', $company->name, ['class'=>'form-control', 'placeholder'=>'Company Name', 'readonly', 'required'])}}
{{Form::label('logo', 'Company Logo', ['class'=>'col-md-2'])}}
{{ Form::file('logo', array('class' => 'form-control file-upload', 'accept'=>'image/*')) }}
{{Form::label('code', 'Email Id', ['class'=>'col-md-2'])}}
{{Form::email('email', $company->email, ['class'=>'form-control', 'placeholder'=>'Email Id'])}}
{{Form::label('contactNo', 'Contact No.', ['class'=>'col-md-2'])}}
{{Form::text('contactNo', $company->contactNo, ['class'=>'form-control', 'placeholder'=>'Contact No.', 'data-parsley-length'=>'[10, 20]'])}}
{{Form::label('rateChangeTime', 'Rate Change Time', ['class'=>'required col-md-2'])}}
{{Form::time('rateChangeTime', $company->rateChangeTime, ['class'=>'reuired form-control', 'placeholder'=>'Rate Change Time', 'required'])}}
{{Form::label('shortName', 'Short Name', ['class'=>'required col-md-2'])}}
{{Form::text('shortName', $company->shortName, ['class'=>'required form-control', 'placeholder'=>'Company Short Name', 'required'])}}
{{Form::hidden('_method', 'PUT')}} {{Form::submit('Update', ['class'=>'btn btn-primary'])}} {{Form::reset('Reset', ['class'=>'btn btn-primary'])}}
{!! Form::close() !!}
@endsection