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

{{{ isset($conta) ? "Editar": "Cadastrar" }}} Conta a Receber

@csrf
@if($errors->has('referencia'))
{{ $errors->first('referencia') }}
@endif
@if(!isset($conta) || $conta->venda_id == null)
@if($errors->has('cliente_id'))
{{ $errors->first('cliente_id') }}
@endif
@endif
@if($errors->has('categoria_id'))
{{ $errors->first('categoria_id') }}
@endif
@if($errors->has('vencimento'))
{{ $errors->first('vencimento') }}
@endif
@if($errors->has('valor'))
{{ $errors->first('valor') }}
@endif
@if(!isset($conta))
@endif
@if(!isset($conta))
@if($errors->has('recorrencia'))
{{ $errors->first('recorrencia') }}
@endif

*Este campo deve ser preenchido se ouver recorrência para este registro

@endif
@if(!isset($conta)) @endif @endsection @section('javascript') @endsection