@if (isset($company)) {!! Form::model($company, ['url' => $type . '/' . $company->id, 'method' => 'put', 'files'=> true, 'id'=>'company']) !!} @else {!! Form::open(['url' => $type, 'method' => 'post', 'files'=> true, 'id'=>'company']) !!} @endif
{!! Form::label('company_avatar_file', trans('company.company_avatar'), ['class' => 'control-label']) !!}
@if(isset($company->company_avatar) && $company->company_avatar!="") Image @endif
{{trans('dashboard.select_image')}} {{trans('dashboard.change')}} {{trans('dashboard.remove')}}
{{ $errors->first('company_avatar_file', ':message') }}
{!! Form::label('name', trans('company.company_name'), ['class' => 'control-label required']) !!}
{!! Form::text('name', null, ['class' => 'form-control','placeholder'=>'Company name']) !!} {{ $errors->first('name', ':message') }}
{!! Form::label('website', trans('company.website'), ['class' => 'control-label required']) !!}
{!! Form::text('website', null, ['class' => 'form-control','placeholder'=>'Company website']) !!} {{ $errors->first('website', ':message') }}
{!! Form::label('phone', trans('company.phone'), ['class' => 'control-label required']) !!}
{!! Form::text('phone', null, ['class' => 'form-control','data-fv-integer' => "true",'placeholder'=>'Phone']) !!} {{ $errors->first('phone', ':message') }}
{!! Form::label('mobile', trans('company.mobile'), ['class' => 'control-label']) !!}
{!! Form::text('mobile', null, ['class' => 'form-control','data-fv-integer' => "true",'placeholder'=>'Mobile']) !!} {{ $errors->first('mobile', ':message') }}

Location

{!! Form::label('country_id', trans('company.country'), ['class' => 'control-label required']) !!}
{!! Form::select('country_id', $countries, null, ['id'=>'country_id', 'class' => 'form-control select2']) !!} {{ $errors->first('country_id', ':message') }}
{!! Form::label('state_id', trans('company.state'), ['class' => 'control-label required']) !!}
{!! Form::select('state_id', isset($company)?$states:[0=>trans('company.select_state')], null, ['id'=>'state_id', 'class' => 'form-control select2']) !!} {{ $errors->first('state_id', ':message') }}
{!! Form::label('city_id', trans('company.city'), ['class' => 'control-label required']) !!}
{!! Form::select('city_id', isset($company)?$cities:[0=>trans('company.select_city')], null, ['id'=>'city_id', 'class' => 'form-control select2']) !!} {{ $errors->first('city_id', ':message') }}
{!! Form::label('address', trans('company.address'), ['class' => 'control-label required']) !!}
{!! Form::textarea('address', null, ['class' => 'form-control resize_vertical','placeholder'=>'Address']) !!} {{ $errors->first('address', ':message') }}
{{trans('table.back')}}
{!! Form::hidden('latitude', null, ['class' => 'form-control', 'id'=>"latitude"]) !!} {!! Form::hidden('longitude', null, ['class' => 'form-control', 'id'=>"longitude"]) !!} {!! Form::close() !!}
@section('scripts') @endsection