<div class="table_error"></div>
<div class="table-responsive">
    <table class="table table-list">
        <thead>
        <tr>
            <?php echo tableHeader('validation.attributes.active', 'style="width: 1px;"'); ?>

            <?php echo tableHeader('global.language'); ?>

            <?php echo tableHeader('admin.actions', 'style="text-align: right;"'); ?>

        </tr>
        </thead>

        <tbody>
        <?php foreach($languages as $language): ?>
            <tr>
                <td>
                    <span class="label label-sm label-<?php echo $language['active'] ? 'success' : 'danger'; ?>">
                        <?php echo trans('validation.attributes.active'); ?>

                    </span>
                </td>
                <td>
                    <img src="<?php echo e(asset_flag($language['key'])); ?>" />
                    <?php echo $language['title']; ?>

                </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-modal="<?php echo $section; ?>_edit" data-url="<?php echo route("admin.{$section}.edit", $language['key']); ?>"><?php echo trans('global.edit'); ?></a></li>
                            <li><a href="<?php echo route("admin.translations.show", $language['key']); ?>"><?php echo trans('admin.translate'); ?></a></li>
                        </ul>
                    </div>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>
    </table>
</div>