@extends('backend.includes.panel') @section('page_css') @stop @section('page_title','Company') @section('inner_page_link') @stop @section('main_content')
{{ Form::model($company, ['route' => ['save.company.settings',$company->id], 'method' => 'post','class'=>'form-horizontal form-material','data-parsley-validate'=>'','autocomplete'=>'off','enctype'=>'multipart/form-data','id'=>'companyForm']) }} @if($userData->role_id !=3)

Company Details

@endif
Details of Company
{{ Form::text('name',Input::old('name'),['class'=>'form-control','data-parsley-required'=>'true','autofocus'=>'true']) }} @if(isset($errors) && $errors->first('name')) {{ $errors->first('name') }} @endif
{{ Form::email('email',Input::old('email'),['class'=>'form-control','data-parsley-required'=>'true','id'=>'email','data-parsley-type'=>'email']) }} @if(isset($errors) && $errors->first('email')) {{ $errors->first('email') }} @endif
{{ Form::text('phone',Input::old('phone'),['class'=>'form-control','data-parsley-required'=>'true','id'=>'phone','data-parsley-type'=>'digits','data-parsley-minlength'=>'10','data-parsley-maxlength'=>'15']) }} @if(isset($errors) && $errors->first('phone')) {{ $errors->first('phone') }} @endif
@php $attributes = ['class'=>'form-control','id'=>'password']; @endphp @if(!isset($company)) @php $attributes['data-parsley-required'] = 'true'; @endphp @endif {{ Form::password('password',$attributes) }}
@php $attributes = ['class'=>'form-control','id'=>'confirm_password','data-parsley-equalto'=>'#password']; @endphp @if(!isset($company)) @php $attributes['data-parsley-required'] = 'true'; @endphp @endif {{ Form::password('confirm_password',$attributes) }}
@if(isset($company->image)) {{ Form::hidden('old_image',$company->image,['id'=>'old_image']) }} @endif

Logo

{{ Form::textarea('privacy_policy',(Input::old('privacy_policy') ? Input::old('privacy_policy') : ($company->companySettings ? $company->companySettings->privacy_policy : '')),['class'=>'form-control','data-parsley-required'=>'true','autofocus'=>'true']) }} @if(isset($errors) && $errors->first('name')) {{ $errors->first('name') }} @endif

Status

{{ Form::checkbox('status',1,null,['data-on-color'=>'info','data-off-color'=>'danger']) }}
{{ Form::close() }}
@stop @section('page_script') @stop