
<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-user"></i> <?php echo e(trans('application.client_details')); ?></h1>
</div>
<section class="content">
    <div class="row">
            <div class="col-md-6">
                <div class="box box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title"><?php echo e($client->name); ?></h3>
                    </div>

                    <div class="box-body">
                        <table class="table table-striped">
                            <tr>
                                <td style="width:30%"><dt><?php echo e(trans('application.client_number')); ?></dt></td>
                                <td><?php echo e($client->client_no); ?></td>
                            </tr>

                            <tr>
                                <td><dt><?php echo e(trans('application.email')); ?></dt></td>
                                <td><?php echo e($client->email); ?></td>
                            </tr>

                            <tr>
                                <td><dt><?php echo e(trans('application.phone')); ?></dt></td>
                                <td><?php echo e($client->phone); ?></td>
                            </tr>

                            <tr>
                                <td><dt><?php echo e(trans('application.mobile')); ?></dt></td>
                                <td><?php echo e($client->mobile); ?></td>
                            </tr>

                            <tr>
                                <td><dt><?php echo e(trans('application.address_1')); ?></dt></td>
                                <td><?php echo e($client->address1); ?></td>
                            </tr>

                            <tr>
                                <td><dt><?php echo e(trans('application.address_2')); ?></dt></td>
                                <td><?php echo e($client->address2); ?></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="box box-solid">
                    <div class="box-body">
                        <table class="table table-striped">
                            <tr>
                                <td style="width:30%"><dt><?php echo e(trans('application.city')); ?></dt></td>
                                <td><?php echo e($client->city); ?></td>
                            </tr>
                            <tr>
                                <td><dt><?php echo e(trans('application.state_province')); ?></dt></td>
                                <td><?php echo e($client->state); ?></td>
                            </tr>
                            <tr>
                                <td><dt><?php echo e(trans('application.postal_zip')); ?></dt></td>
                                <td><?php echo e($client->postal_code); ?></td>
                            </tr>
                            <tr>
                                <td><dt><?php echo e(trans('application.country')); ?></dt></td>
                                <td><?php echo e($client->Country); ?></td>
                            </tr>
                            <tr>
                                <td><dt><?php echo e(trans('application.website')); ?></dt></td>
                                <td><?php echo e($client->website); ?></td>
                            </tr>
                            <tr>
                                <td><dt><?php echo e(trans('application.notes')); ?></dt></td>
                                <td><?php echo e($client->notes); ?></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
     </div>
    <div class="row">
        <div class="col-md-12">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title"><?php echo e(trans('application.invoices')); ?></h3>
                </div>
                <div class="box-body">
                        <table class="table table-bordered table-striped table-hover datatable">
                            <thead>
                            <tr>
                                <th width="10%"></th>
                                <th><?php echo e(trans('application.invoice_number')); ?></th>
                                <th><?php echo e(trans('application.status')); ?></th>
                                <th><?php echo e(trans('application.date')); ?></th>
                                <th><?php echo e(trans('application.due_date')); ?></th>
                                <th><?php echo e(trans('application.amount')); ?></th>
                                <th width="20%"><?php echo e(trans('application.action')); ?></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $client->invoices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invoice): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                            <tr>
                                <td></td>
                                <td><a href="<?php echo e(route('invoices.show', $invoice->uuid )); ?>"><?php echo e($invoice->number); ?></a> </td>
                                <td><span class="label <?php echo e(statuses()[$invoice->status]['class']); ?>"><?php echo e(ucwords(statuses()[$invoice->status]['label'])); ?> </span></td>
                                <td><?php echo e($invoice->invoice_date); ?> </td>
                                <td><?php echo e($invoice->due_date); ?> </td>
                                <td><?php echo e($invoice->currency.''.$invoice->totals['grandTotal']); ?> </td>
                                <td>
                                    <a href="<?php echo e(route('invoices.show',$invoice->uuid)); ?>" class="btn btn-xs btn-info"><i class="fa fa-eye"></i> <?php echo e(trans('application.view')); ?> </a>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                            </tbody>
                        </table>
                </div>
            </div>
        </div>
        <div class="col-md-12">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title"><?php echo e(trans('application.estimates')); ?></h3>
                </div>

                <div class="box-body">
                    <table class="table table-bordered table-striped table-hover datatable">
                        <thead>
                        <tr>
                            <th width="10%"></th>
                            <th><?php echo e(trans('application.estimate_number')); ?></th>
                            <th><?php echo e(trans('application.date')); ?></th>
                            <th><?php echo e(trans('application.amount')); ?></th>
                            <th width="20%"><?php echo e(trans('application.action')); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $client->estimates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $count => $estimate): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                        <tr>
                            <td><?php echo e($count+1); ?></td>
                            <td><a href="<?php echo e(route('estimates.show', $estimate->uuid )); ?>"><?php echo e($estimate->estimate_no); ?></a> </td>
                            <td><?php echo e($estimate->estimate_date); ?> </td>
                            <td><?php echo e($estimate->currency.''.$estimate->totals['grandTotal']); ?> </td>
                            <td>
                                <a href="<?php echo e(route('estimates.show',$estimate->uuid)); ?>" class="btn btn-xs btn-info"><i class="fa fa-eye"></i> <?php echo e(trans('application.view')); ?> </a>
                            </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(); ?>