<div class="row">

<div class="block p-5 col-md-12">

    <div class=" cor_olinda_azul_bg">
        <h3 class=" p-5 text-white"><center>Criar Solicitação</center></h3>
    </div>

    <div class="block-body">

        <p class="block-text">
        <div class="container">
            <div class="row">
                <div class="col-md-12">

                    <div class="form-group <?php echo e($errors->has('tipo') ? 'has-error' : ''); ?>">
                        <label for="tipo" class="control-label"><?php echo e('Tipo'); ?></label>
                        <select name="tipo" class="form-control" id="tipo" required>
                            <?php $__currentLoopData = json_decode('{"informação":"Informação", "denúncia":"Denúncia", "serviço":"Serviço", "d\u00favida":"D\u00favida","reclama\u00e7\u00e3o":"Reclama\u00e7\u00e3o","elogio":"Elogio","sugest\u00e3o":"Sugest\u00e3o", "recurso":"Recurso"}',true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $optionKey=> $optionValue): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($optionKey); ?>"
                                    <?php echo e(isset($protocolo->tipo) && $protocolo->tipo == $optionKey ? 'selected' : ''); ?>>
                                    <?php echo e($optionValue); ?>

                                </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                        <?php echo $errors->first('tipo', '<p class="help-block">:message</p>'); ?>

                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group <?php echo e($errors->has('descricao') ? 'has-error' : ''); ?>">
                        <label for="descricao" class="control-label"><?php echo e('Descrição'); ?></label>
                        <textarea class="form-control" rows="5" name="descricao" type="textarea" id="descricao"
                            required><?php echo e(isset($protocolo->descricao) ? $protocolo->descricao : ''); ?></textarea>
                        <?php echo $errors->first('descricao', '<p class="help-block">:message</p>'); ?>

                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group <?php echo e($errors->has('anexo') ? 'has-error' : ''); ?>">
                        <?php if(isset($error['anexo'])): ?>
                            <div class="alert alert-danger">
                                <p><?php echo e($error['anexo']); ?></p>
                            </div>
                        <?php endif; ?>
                        <label for="anexo" class="control-label"><?php echo e('Deseja anexar um arquivo?'); ?></label>
                        <input type="file" name="anexo" id="anexo" class="form-control">
                        <?php echo $errors->first('anexo', '<p class="help-block">:message</p>'); ?>

                    </div>
                </div>

                <div class="form-group <?php echo e($errors->has('idUser') ? 'has-error' : ''); ?>">

                    <div class="form-group p-5">
                        <input class="btn btn-primary btn-hero" type="submit" value="<?php echo e($formMode === 'edit' ? 'Salvar' : 'Criar'); ?>">
                    </div>

                </div>

            </div>
        </div>
        </p>




    </div>
</div>
</div>
<?php /**PATH C:\xampp\htdocs\ouvidoria\resources\views/protocolo/form.blade.php ENDPATH**/ ?>