<?php $__env->startSection('content'); ?>
<!-- Page-Title -->
<div class="row">
    <div class="col-sm-12">
        <ol class="breadcrumb">
            <li><a href="<?php echo e(url('')); ?>"><span class="m-l-5"><i class="fa fa-home"></i></span>&nbsp;Início</a></li>
            <li class="active">Clientes</li>
        </ol>
    </div>
    <div class="col-sm-12">
        <h4 class="page-title">Clientes</h4>
    </div>
</div>

<div class="row">
    <div class="col-sm-12">
        <div class="card-box table-responsive">
            <table id="datatable-normal" class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th width="30%">Nome</th>
                        <th>CNPJ/CPF</th>
                        <th>E-mail</th>
                    </tr>
                </thead>

                <tbody>
                    <?php $__currentLoopData = $clientes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $o): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                    <tr>
                        <td><?php echo e(isset($o->nome) ? $o->nome : ''); ?></td>
                        <td><?php if($o->tipo_pessoa == 'J'): ?> <?php echo e($o->cnpj); ?> <?php else: ?> <?php echo e($o->cpf); ?>  <?php endif; ?></td>
                        <td><?php echo e(isset($o->email) ? $o->email : ''); ?></td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                </tbody>
            </table>
        </div>
    </div><!-- end col -->
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>