<?php $__env->startSection('title', 'Paid services - Details #' . $service->id); ?>

<?php $__env->startSection('content_header', 'Paid services <small>paid service details</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.paid_services._partials.tabs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <div class="row">
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>#</dt>
                                    <dd><?php echo e($service->id); ?></dd>
                                </dl>
                            </div>
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Active</dt>
                                    <dd>
                                        <?php if($service->active): ?>
                                            <span class="label label-success">yes</span>
                                        <?php else: ?>
                                            <span class="label label-danger">no</span>
                                        <?php endif; ?>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Title</dt>
                                    <dd><?php echo e($service->title); ?></dd>
                                </dl>
                            </div>
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Type</dt>
                                    <dd><?php echo e($service->type); ?></dd>
                                </dl>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Price</dt>
                                    <dd>
                                        <?php if(!is_null($service->price)): ?>
                                            <?php echo e(format_balance($service->price)); ?>

                                        <?php else: ?>
                                            <span class="label label-default">free of charge</span>
                                        <?php endif; ?>
                                    </dd>
                                </dl>
                            </div>
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Configuration</dt>
                                    <dd>
                                        <?php if(!is_null($service->config)): ?>
                                            <?php foreach($service->config as $key => $value): ?>
                                                <div>
                                                    <strong><?php echo e($key); ?></strong>: <?php echo e($value); ?>

                                                </div>
                                            <?php endforeach; ?>
                                        <?php else: ?>
                                            -
                                        <?php endif; ?>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-md-12">
                                <dl class="dl-horizontal">
                                    <dt>Description</dt>
                                    <dd><?php echo e($service->description); ?></dd>
                                </dl>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Created at</dt>
                                    <dd><?php echo e($service->created_at); ?></dd>
                                </dl>
                            </div>
                            <div class="col-md-6">
                                <dl class="dl-horizontal">
                                    <dt>Updated at</dt>
                                    <dd><?php echo e($service->updated_at); ?></dd>
                                </dl>
                            </div>
                        </div>
                        <hr>
                        <div class="clearfix">
                            <div class="pull-right">
                                <?php if($service->active): ?>
                                    <a href="<?php echo e(route('admin.paid_services.deactivate', $service->id)); ?>" class="btn btn-info confirm-action"><i class="fa fa-minus-circle"></i> Deactivate</a>
                                <?php else: ?>
                                    <a href="<?php echo e(route('admin.paid_services.activate', $service->id)); ?>" class="btn btn-success confirm-action"><i class="fa fa-check"></i> Activate</a>
                                <?php endif; ?>
                                <a href="<?php echo e(route('admin.paid_services.edit', $service->id)); ?>" class="btn btn-warning"><i class="fa fa-pencil"></i> Edit</a>
                                <a href="<?php echo e(route('admin.paid_services.delete', $service->id)); ?>" class="btn btn-danger confirm-action"><i class="fa fa-trash"></i> Delete</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>