

<?php $__env->startSection('title', $title); ?>

<?php $__env->startSection('vendor-style'); ?>
    <style>
        .table-bordered th,
        .table-bordered td {
            border: 1px solid #d7cece !important;
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <?php
    $statuses = Config::get('params.statuses');
    $customer_types = Config::get('params.customer_types');
    $confrim = Config::get('params.confrim');
    // echo '<pre>';
    // print_r($model);
    // die();
    ?>
    <!-- Add rows table -->
    <div class="row card">
        <div class="card-header">
            <ul id="tabsJustified" class="nav nav-tabs">
                <li class="nav-item"><a href="#_" data-target="#information" data-toggle="tab"
                        class="nav-link small text-uppercase active">Customer Information</a></li>
                <li class="nav-item"><a href="#_" data-target="#transaction" data-toggle="tab"
                        class="nav-link small text-uppercase ">Transaction</a></li>

            </ul>
        </div>

        <div id="tabsJustifiedContent" class="tab-content">
            <div id="information" class="tab-pane fade active show">

                <div class="card-content">
                    <div class="card-body">

                        <div class="row">
                            <div class="col-sm-12">

                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <td>First Name :</td>
                                            <td><?php echo e($model->firstName); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Last Name :</td>
                                            <td><?php echo e($model->lastName); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Email :</td>
                                            <td><?php echo e($model->email); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Phone :</td>
                                            <td><?php echo e($model->phone); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Status :</td>
                                            <td><?php echo e($model->status); ?></td>
                                        </tr>

                                        <tr>
                                            <td>Type :</td>
                                            <td><?php echo e($customer_types[$model->type]); ?></td>
                                        </tr>

                                        <tr>
                                            <td>Address Line :</td>
                                            <td><?php echo e($model->address->address1); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Address Line 2 :</td>
                                            <td><?php echo e($model->address->address2); ?></td>
                                        </tr>
                                        <tr>
                                            <td>City :</td>
                                            <td><?php echo e($model->address->city); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Postcode :</td>
                                            <td><?php echo e($model->address->postcode); ?></td>
                                        </tr>

                                        <tr>
                                            <td>Created:</td>
                                            <td><?php echo e($model->crated_at); ?></td>
                                        </tr>
                                        <tr>
                                            <td>Last Updated:</td>
                                            <td><?php echo e($model->updated_at); ?></td>
                                        </tr>

                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <?php if(count($transaction) > 0): ?>
                <div id="transaction" class="tab-pane fade">
                    <div class="card-content">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table class="table table-bordered">
                                        <tbody>

                                            <tr>
                                                <th>Invoice Number</th>
                                                <th>Payment Method </td>
                                                <th>Boiler age </th>
                                                <th>Price </th>
                                                <th>Vat </th>
                                                <th>Total </th>
                                                <th>Start Date </th>
                                                <th>Confirmed </th>
                                                <th>Status </th>
                                                <th>Package Title </th>
                                                <th></th>
                                            </tr>
                                            <?php $__currentLoopData = $transaction; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tran): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($tran->invoiceNumber); ?></td>
                                                    <td><?php echo e($tran->paymentMethod); ?></td>
                                                    <td><?php echo e($tran->boilerAge); ?></td>
                                                    <td><?php echo e($tran->price); ?></td>
                                                    <td><?php echo e($tran->vat); ?></td>
                                                    <td><?php echo e($tran->total); ?></td>
                                                    <td><?php echo e($tran->startDate); ?></td>
                                                    <td><?php echo e(isset($confrim[$tran->confirmed])); ?></td>
                                                    <td><?php echo e($tran->status ? 'Active' : 'Inactive'); ?></td>
                                                    <td><?php echo e($tran->package->title); ?></td>
                                                    <td><a href="<?php echo e(url('admin/transactions')); ?>/<?php echo e($tran->id); ?>"
                                                            target="_blank"
                                                            class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">View</a>
                                                            <a href="<?php echo e(url('admin/transactions/pdf')); ?>/<?php echo e($tran->id); ?>"
                                                                class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Download</a>
                                                        </td>
                                                    </td>

                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



                                        </tbody>
                                    </table>


                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>


        </div>

    </div>



    <!--/ Add rows table -->
    <!--/ Scroll - horizontal and vertical table -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('vendor_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('myscript'); ?>
    
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin/layouts/contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/seolocaj/public_html/homefloltd/resources/views/admin/customers/show.blade.php ENDPATH**/ ?>