<?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('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.default')); ?></th>
                                    <th><?php echo e(trans('application.status')); ?></th>
                                    <th><?php echo e(trans('application.action')); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $locales; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $locale): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                                <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 $locale->default  ? '<span class="label label-success">'.trans('application.yes').'</span>' : '<span class="label label-danger">'.trans('application.no').'</span>'; ?></td>
                                    <td><?php echo $locale->status == '1' ? '<span class="label label-success">'.trans('application.enabled').'</span>' : '<span class="label label-danger">'.trans('application.disabled').'</span>'; ?></td>
                                    <td>
                                        <a class="btn btn-warning btn-xs" href="<?php echo e(url('translations/application/'.$locale->short_name)); ?>"><span class="fa fa-eye"></span> <?php echo e(trans('application.view_translations')); ?></a>
                                        <?php echo edit_btn('translations.edit', $locale->uuid); ?>

                                        <?php if($locale->short_name != 'en'): ?>
                                            <?php echo delete_btn('translations.destroy', $locale->uuid); ?>

                                        <?php endif; ?>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>