<?php $__env->startSection('style'); ?>
    <link href="<?php echo e(asset('js/advanced-datatable/css/demo_page.css')); ?>" rel="stylesheet" />
    <link href="<?php echo e(asset('js/advanced-datatable/css/demo_table.css')); ?>" rel="stylesheet" />
    <link rel="stylesheet" href="<?php echo e(asset('js/data-tables/DT_bootstrap.css')); ?>" />
    <?php $__env->stopSection(); ?>


    <?php $__env->startSection('content'); ?>
    <div class="wrapper">
        <?php echo $__env->make('partials.message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="row">
            <div class="col-sm-12">
                <section class="panel">
                    <header class="panel-heading">
                        <?php echo e(trans('ui.promotoria.names')); ?>

                        <span class="tools pull-right">
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                             </span>
                    </header>
                    <div class="panel-body">
                            <a href="<?php echo e(url('promotoria/create')); ?>" class="pull-right"><button class="btn btn-primary" type="button"><i class="fa fa-plus-circle"></i> <?php echo e(trans("ui.promotoria.button_add")); ?></button></a>
                        <table class="display table table-bordered table-striped" id="dynamic-table">
                            <thead>
                            <tr>
                                <th><?php echo e(trans('ui.promotoria.key')); ?></th>
                                <th><?php echo e(trans('ui.promotoria.business_name')); ?></th>
                                <th><?php echo e(trans('ui.documents.operation_label')); ?></th>
                             </tr>
                            </thead>
                            <tbody>
                            <?php foreach($promotorias as $promotoria): ?>
                                <tr>
                                    <td><?php echo e($promotoria -> clave); ?></td>
                                    <td><?php echo e($promotoria->razonSocial); ?></td>
                                        <td>
                                                <a href="<?php echo e(url('promotoria/' . $promotoria->id . '/edit')); ?>">
                                                    <i class="fa fa-refresh"></i>
                                                </a>

                                                <a href="<?php echo e(url('promotoria/' . $promotoria->id )); ?>">
                                                     <i class="fa fa-eye"></i>
                                                </a>


                                            <?php echo Form::open(['url' => 'promotoria/'. $promotoria->id, 'method' => 'delete','style'=>'display:inline-block;']); ?>

                                                <button class="delete-button" type="submit"><i class="fa fa-times-circle"></i></button>
                                                <?php echo Form::close(); ?>


                                        </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </section>
            </div>
        </div>
    </div>
    <?php $__env->stopSection(); ?>

    <?php $__env->startSection('script'); ?>
            <!--dynamic table-->
    <script type="text/javascript" language="javascript" src="<?php echo e(asset('js/advanced-datatable/js/jquery.dataTables.js')); ?>"></script>
    <script type="text/javascript" src="<?php echo e(asset('js/data-tables/DT_bootstrap.js')); ?>"></script>
    <!--dynamic table initialization -->
    <script src="<?php echo e(asset('js/dynamic_table_init.js')); ?>"></script>
<?php $__env->stopSection(); ?>

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