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

{{isset($cliente) ? 'Editar' : 'Novo'}} Cliente

@csrf @isset($cliente) @if($cliente->valorCredito() > 0)

Valor de crédito: R$ {{ number_format($cliente->valorCredito(), 2, ',', '.')}}

@endif @endif
@if($errors->has('cpf_cnpj'))
{{ $errors->first('cpf_cnpj') }}
@endif
@if($errors->has('razao_social'))
{{ $errors->first('razao_social') }}
@endif
@if($errors->has('nome_fantasia'))
{{ $errors->first('nome_fantasia') }}
@endif
@if($errors->has('ie_rg'))
{{ $errors->first('ie_rg') }}
@endif
@if($errors->has('consumidor_final'))
{{ $errors->first('consumidor_final') }}
@endif
@if($errors->has('contribuinte'))
{{ $errors->first('contribuinte') }}
@endif
@if($errors->has('limite_venda'))
{{ $errors->first('limite_venda') }}
@endif
@if($errors->has('data_aniversario'))
{{ $errors->first('data_aniversario') }}
@endif

Endereço de Faturamento
@if($errors->has('rua'))
{{ $errors->first('rua') }}
@endif
@if($errors->has('numero'))
{{ $errors->first('numero') }}
@endif
@if($errors->has('complemento'))
{{ $errors->first('complemento') }}
@endif
@if($errors->has('bairro'))
{{ $errors->first('bairro') }}
@endif
@if($errors->has('cep'))
{{ $errors->first('cep') }}
@endif
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if($errors->has('cidade'))
{{ $errors->first('cidade') }}
@endif
@if($errors->has('cod_pais'))
{{ $errors->first('cod_pais') }}
@endif
@if($errors->has('id_estrangeiro'))
{{ $errors->first('id_estrangeiro') }}
@endif
@if($errors->has('telefone'))
{{ $errors->first('telefone') }}
@endif
@if($errors->has('celular'))
{{ $errors->first('celular') }}
@endif
imagem == '') style="background-image: url(/foto_usuario/user.png)" @else style="background-image: url(/imgs_clientes/{{$cliente->imagem}})" @endif>
.png, .jpg, .jpeg @if($errors->has('file'))
{{ $errors->first('file') }}
@endif
@if($errors->has('contador_nome'))
{{ $errors->first('contador_nome') }}
@endif
@if($errors->has('contador_telefone'))
{{ $errors->first('contador_telefone') }}
@endif
@if($errors->has('contador_email'))
{{ $errors->first('contador_email') }}
@endif
@if($errors->has('observacao'))
{{ $errors->first('observacao') }}
@endif
@if($errors->has('funcionario_id'))
{{ $errors->first('funcionario_id') }}
@endif
@if(isset($cliente) && $cliente->receitaOtica) @endif

Endereço de Cobrança (Opcional)
@if($errors->has('rua_cobranca'))
{{ $errors->first('rua_cobranca') }}
@endif
@if($errors->has('numero_cobranca'))
{{ $errors->first('numero_cobranca') }}
@endif
@if($errors->has('bairro_cobranca'))
{{ $errors->first('bairro_cobranca') }}
@endif
@if($errors->has('cep_cobranca'))
{{ $errors->first('cep_cobranca') }}
@endif
@if($errors->has('cidade_cobranca_id'))
{{ $errors->first('cidade_cobranca_id') }}
@endif
@isset($cliente) @else @endif
@section('javascript') @endsection @endsection