<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-xs-12"> <?php echo Breadcrumb::withLinks($breadcrumbs); ?> </div> </div> <div class="row"> <div class="col-xs-12"> <table class="table table-striped"> <thead> <tr> <th class="col-xs-6"><?php echo trans('admin.labels.setting'); ?></th> <th class="col-xs-5"><?php echo trans('admin.labels.value'); ?></th> <?php if(Sentry::getUser()->hasAccess('admin.setting.edit')): ?> <th class="col-xs-1 text-center"><?php echo trans('admin.labels.edit'); ?></th> <?php else: ?> <th class="col-xs-1 text-center"><?php echo trans('admin.labels.show'); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $__empty_1 = true; foreach($settings as $setting): $__empty_1 = false; ?> <tr> <td class="col-xs-6"> <?php echo trans('admin.labels.' . $setting['setting']); ?> </td> <td class="col-xs-5"> <?php if($setting['setting'] === 'dhl_fuel_surcharge'): ?> <?php echo $setting['value']; ?> <?php endif; ?> <?php if($setting['setting'] === 'cart_disabled'): ?> <?php if($setting['value']): ?> <?php echo trans('admin.labels.yes'); ?> <?php else: ?> <?php echo trans('admin.labels.no'); ?> <?php endif; ?> <?php endif; ?> </td> <?php if(Sentry::getUser()->hasAccess('admin.setting.edit')): ?> <td class="col-xs-1 text-center"> <?php echo Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.setting.edit', [$setting['id']]))->extraSmall()->prependIcon(Icon::pencil()); ?> </td> <?php else: ?> <td class="col-xs-1 text-center"> <?php echo Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.setting.show', [$setting['id']]))->extraSmall()->prependIcon(Icon::search()); ?> </td> <?php endif; ?> </tr> <?php endforeach; if ($__empty_1): ?> <tr> <td colspan="3" class="text-center"> <?php echo trans('admin.messages.empty-list-of-settings'); ?> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> <?php $__env->stopSection(); ?>