@include('layouts.flash.alert')
{{ Form::open(['route' => ['companies.update.profile', $company->id], 'method' => 'patch', 'enctype'=> 'multipart/form-data']) }}
{{ Form::label('company_name', 'Company name') }}*
{{ Form::text('company_name', old('company_name') ? old('company_name') : $company->company_name, [
'class' => "form-control company_name",
'id' => "company_name",
]) }}
@if($errors->has('company_name'))
{{ $errors->first('company_name') }}
@endif
{{ Form::label('company_contact', 'Company contact') }}*
{{ Form::text('company_contact', old('company_contact') ? old('company_contact') : $company->company_contact, [
'class' => "form-control company_contact",
'id' => "company_contact",
]) }}
@if($errors->has('company_contact'))
{{ $errors->first('company_contact') }}
@endif
{{ Form::label('category_id', 'Category') }}*
{{ Form::select('category_id', $categories, old('category_id') ? old('category_id') : $company->category_id, [
'class' => "form-control select2-input category_id",
'id' => "category_id",
'data-live-search'=>'true'
]) }}
@if($errors->has('category_id'))
{{ $errors->first('category_id') }}
@endif
{{ Form::label('logo', 'Company logo') }}
{{ Form::file('logo', [
'class' => "form-control logo",
'id' => "logo",
]) }}
@if($errors->has('logo'))
{{ $errors->first('logo') }}
@endif
{{ Form::label('full_name', 'Full name') }}*
{{ Form::text('full_name', old('full_name') ? old('full_name') : $company->full_name, [
'class' => "form-control full_name",
'id' => "full_name",
]) }}
@if($errors->has('full_name'))
{{ $errors->first('full_name') }}
@endif
{{ Form::label('email', 'Email') }}*
{{ Form::text('email', old('email') ? old('email') : $company->email, [
'class' => "form-control email",
'id' => "email",
'readonly'=> 'readonly'
]) }}
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
{{ Form::label('address_line1', 'Address line1') }}
{{ Form::text('address_line1', old('address_line1') ? old('address_line1') : $company->address_line1, [
'class' => "form-control address_line1",
'id' => "address_line1",
]) }}
@if($errors->has('address_line1'))
{{ $errors->first('address_line1') }}
@endif
{{ Form::label('address_line2', 'Address line2') }}
{{ Form::text('address_line2', old('address_line2') ? old('address_line2') : $company->address_line2, [
'class' => "form-control address_line2",
'id' => "address_line2",
]) }}
@if($errors->has('address_line2'))
{{ $errors->first('address_line2') }}
@endif
{{ Form::label('phone', 'Phone') }}*
{{ Form::text('phone', old('phone') ? old('phone') : $company->phone, [
'class' => "form-control phone",
'id' => "phone"
]) }}
@if($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
{{ Form::label('fax', 'Fax') }}
{{ Form::text('fax', old('fax') ? old('fax') : $company->fax, [
'class' => "form-control fax",
'id' => "fax",
]) }}
@if($errors->has('fax'))
{{ $errors->first('fax') }}
@endif
{{ Form::label('suburb', 'Town') }}
{{ Form::text('suburb', old('suburb') ? old('suburb') : $company->suburb, [
'class' => "form-control suburb",
'id' => "suburb",
]) }}
@if($errors->has('suburb'))
{{ $errors->first('suburb') }}
@endif
{{ Form::label('postcode', 'Post code') }}
{{ Form::text('postcode', old('postcode') ? old('postcode') : $company->postcode, [
'class' => "form-control postcode",
'id' => "postcode",
]) }}
@if($errors->has('postcode'))
{{ $errors->first('postcode') }}
@endif
{{ Form::label('file', 'Avatar') }}
{{ Form::file('file', [
'class' => "form-control file",
'id' => "file",
]) }}
@if($errors->has('file'))
{{ $errors->first('file') }}
@endif
{{ Form::close() }}
@stop