@extends('layouts.app') @if(isset($funcionario->id)) @section('titulo','Editar Apolice') @else @section('titulo','Adicionar Apolice') @endif @section('conteudo')

@yield('titulo')

@if(isset($apolice->id))
@csrf @method('PUT') @else @csrf @endif
{{$errors->has('name') ? $errors->first('name'): ''}}
{{$errors->has('email') ? $errors->first('email'): ''}}
{{$errors->has('Telefone') ? $errors->first('Telefone'): ''}}
{{$errors->has('inicio') ? $errors->first('inicio'): ''}}
{{$errors->has('fim') ? $errors->first('fim'): ''}}
{{$errors->has('code') ? $errors->first('code'): ''}}
@if(isset($apolice->id)) @else @endif {{$errors->has('product_id') ? $errors->first('product_id'): ''}}
@endsection