@extends('default.layout') @section('content')

{{isset($acessor) ? 'Editar' : 'Novo'}} Assessor

@csrf
@if($errors->has('cpf_cnpj'))
{{ $errors->first('cpf_cnpj') }}
@endif
@if($errors->has('razao_social'))
{{ $errors->first('razao_social') }}
@endif

@if($errors->has('rua'))
{{ $errors->first('rua') }}
@endif
@if($errors->has('numero'))
{{ $errors->first('numero') }}
@endif
@if($errors->has('bairro'))
{{ $errors->first('bairro') }}
@endif
@if($errors->has('cidade'))
{{ $errors->first('cidade') }}
@endif
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if($errors->has('telefone'))
{{ $errors->first('telefone') }}
@endif
@if($errors->has('data_registro'))
{{ $errors->first('data_registro') }}
@endif
@if($errors->has('cep'))
{{ $errors->first('cep') }}
@endif
@if(!isset($acessor) || $acessor->funcionario_id == NULL)
@else
@endif
@if($errors->has('percentual_comissao'))
{{ $errors->first('percentual_comissao') }}
@endif
@endsection