<div class="table-responsive">
    <table class="table table-list" data-table>
        <thead>
        <tr>
            <th><?php echo e(trans('front.connection')); ?></th>
            <th><?php echo e(trans('front.command')); ?></th>
            <th><?php echo e(trans('validation.attributes.parameters')); ?></th>
            <th><?php echo e(trans('front.schedule_at')); ?></th>
            <th><?php echo e(trans('validation.attributes.type')); ?></th>
            <th>
                <div class="pull-right">
                    <a href="javascript:" data-url="<?php echo e(route('command_schedules.create')); ?>"
                       data-modal="command_schedule">
                        <span class="icon add"></span>
                    </a>
                </div>
            </th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($command_schedules as $command_schedule): ?>
            <tr>
                <td><?php echo e($command_schedule->connection); ?></td>
                <td><?php echo e($command_schedule->command); ?></td>
                <td><?php echo e($command_schedule->parameters_string); ?></td>
                <td><?php echo e($command_schedule->schedule->schedule_at); ?></td>
                <td><?php echo e(ucfirst(str_replace('_', ' ', $command_schedule->schedule->type))); ?></td>
                <td class="actions">
                    <div class="btn-group dropdown droparrow" data-position="fixed">
                        <i class="btn icon edit" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"></i>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="javascript:"
                                   data-url="<?php echo e(route('command_schedules.edit', $command_schedule)); ?>"
                                   data-modal="command_schedule">
                                    <?php echo e(trans('global.edit')); ?>

                                </a>
                            </li>
                            <li>
                                <a href="javascript:"
                                   data-url="<?php echo e(route('command_schedules.logs', $command_schedule)); ?>"
                                   data-modal="command_schedule_logs">
                                    <?php echo e(trans('admin.logs')); ?>

                                </a>
                            </li>
                            <li>
                                <a href="<?php echo e(route('command_schedules.destroy', $command_schedule)); ?>"
                                   class="js-confirm-link"
                                   data-confirm="<?php echo trans('front.do_delete'); ?>"
                                   data-method="DELETE">
                                    <?php echo e(trans('global.delete')); ?>

                                </a>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
</div>