<?php $__env->startSection('content'); ?>
    <div class="col-md-12 content-header" >
        <h1><i class="fa fa-cogs"></i> <?php echo e(trans('application.translations')); ?></h1>
    </div>
    <section class="content">
        <div class="row">
            <div class="col-md-3">
                <?php echo $__env->make('settings.partials._menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
            <div class="col-md-9">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title pull-right">
                            <div class="box-tools ">
                                <a href="<?php echo e(route('settings.translations.create')); ?>" class="btn btn-primary btn-sm pull-right" data-toggle="ajax-modal"> <i class="fa fa-plus"></i> <?php echo e(trans('application.create_locale')); ?></a>
                            </div>
                        </h3>
                    </div>
                    <div class="box-body">

                        <table class="table datatable table-bordered table-hover ">
                            <thead>
                                <tr>
                                    <th></th>
                                    <th><?php echo e(trans('application.flag')); ?></th>
                                    <th><?php echo e(trans('application.locale_name')); ?></th>
                                    <th><?php echo e(trans('application.short_name')); ?></th>
                                    <th><?php echo e(trans('application.status')); ?></th>
                                    <th><?php echo e(trans('application.action')); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php foreach($locales as $locale): ?>
                                <tr>
                                    <td></td>
                                    <td>
                                        <?php if($locale->flag != ''): ?>
                                            <?php echo HTML::image(asset('assets/img/flags/'.$locale->flag), 'flag', array('class' => 'thumbnail', 'style'=>'margin-bottom:0')); ?>

                                        <?php else: ?>
                                            <?php echo HTML::image(asset('assets/img/flags/placeholder_Flag.jpg'), 'flag', array('class' => 'thumbnail', 'style'=>'margin-bottom:0')); ?>

                                        <?php endif; ?>
                                    </td>
                                    <td><?php echo e($locale->locale_name); ?></td>
                                    <td><?php echo e($locale->short_name); ?></td>
                                    <td><?php echo e($locale->status == '1' ? trans('application.enabled') : trans('application.disabled')); ?></td>
                                    <td>
                                        <a class="btn btn-warning btn-sm" href="<?php echo e(url('translations/index/application/'.$locale->short_name)); ?>"><span class="fa fa-eye"></span> <?php echo e(trans('application.view_translations')); ?></a>
                                        <?php if($locale->short_name != 'en'): ?>
                                            <?php echo edit_btn('settings.translations.edit', $locale->uuid); ?>

                                            <?php echo delete_btn('settings.translations.destroy', $locale->uuid); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>