@extends('page') @section('content')

Add New

@if ($message = Session::get('success'))
{{ $message }}
@endif

Company Details

{!! Form::open(array('route' => 'companies.store','method'=>'POST','id'=>'company_form','files'=> true)) !!}
{!! Form::text('company_name', null, array('placeholder' => 'Company Name','class' => 'form-control form-control-sm')) !!} @error('company_name') {{ $message }} @enderror


{!! Form::radio('company_type', 'manufacturer','checked'); !!} {!! Form::radio('company_type', 'distributer'); !!} @error('company_type') {{ $message }} @enderror
{!! Form::text('company_code', null, array('placeholder' => 'Company Code','class' => 'form-control form-control-sm')) !!} @error('company_code') {{ $message }} @enderror
{!! Form::file('company_logo', array('placeholder' => 'Company Logo','class' => 'custom-file-input')) !!}
@error('company_logo') {{ $message }} @enderror
Contact Information
{!! Form::text('telephone_code', 91, array('placeholder' => 'Code','class' => 'form-control form-control-sm','maxlength'=>3)) !!} @error('telephone_code') {{ $message }} @enderror
{!! Form::text('telephone', null, array('placeholder' => 'Contact Number','class' => 'form-control form-control-sm')) !!} @error('telephone') {{ $message }} @enderror
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control form-control-sm', 'id' => 'company_email_id')) !!} @error('email') {{ $message }} @enderror
{!! Form::text('website', null, array('placeholder' => 'Website','class' => 'form-control form-control-sm')) !!} @error('website') {{ $message }} @enderror
{!! Form::text('building_name', null, array('placeholder' => 'Building Name','class' => 'form-control form-control-sm')) !!} @error('building_name') {{ $message }} @enderror
{!! Form::text('area', null, array('placeholder' => 'Area','class' => 'form-control form-control-sm')) !!} @error('area') {{ $message }} @enderror
{!! Form::text('landmark', null, array('placeholder' => 'Landmark','class' => 'form-control form-control-sm')) !!} @error('landmark') {{ $message }} @enderror
{!! Form::text('town', null, array('placeholder' => 'Town','class' => 'form-control form-control-sm')) !!} @error('town') {{ $message }} @enderror
{!! Form::select('countries[]', $countries,'India', array('class' => 'form-control form-control-sm')) !!} @error('countries') {{ $message }} @enderror
{!! Form::text('state', null, array('placeholder' => 'State','class' => 'form-control form-control-sm')) !!} @error('state') {{ $message }} @enderror
{!! Form::text('pin', null, array('placeholder' => 'PIN','class' => 'form-control form-control-sm')) !!} @error('pin') {{ $message }} @enderror
Company Categories
{!! Form::select('categories[]', $categories,[], array('class' => 'form-control form-control-sm','multiple','id'=>'categories')) !!} @error('categories') {{ $message }} @enderror
{!! Form::close() !!}
@endsection