<?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><!-- /.box-body -->

                </div><!-- /.box -->

            </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><!-- /.box-body -->

                </div><!-- /.box -->

            </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></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 foreach($client->invoices as $invoice): ?>

                            <tr>

                                <td></td>

                                <td><?php echo e($invoice->number); ?> </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 route('invoices.show',$invoice->id); ?>" class="btn btn-sm btn-info"><i class="fa fa-eye"></i> <?php echo e(trans('application.view')); ?> </a>

                                </td>

                            </tr>

                            <?php endforeach; ?>

                            </tbody>

                        </table>

                </div><!-- /.box-body -->

            </div><!-- /.box -->

        </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></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 foreach($client->estimates as $count => $estimate): ?>

                        <tr>

                            <td><?php echo e($count+1); ?></td>

                            <td><?php echo e($estimate->estimate_no); ?> </td>

                            <td><?php echo e($estimate->estimate_date); ?> </td>

                            <td><?php echo e($estimate->currency.''.$estimate->totals['grandTotal']); ?> </td>

                            <td>

                                <a href="<?php echo route('estimates.show',$estimate->id); ?>" class="btn btn-sm btn-info"><i class="fa fa-eye"></i> <?php echo e(trans('application.view')); ?> </a>

                            </td>

                        </tr>

                        <?php endforeach; ?>

                        </tbody>

                    </table>

                </div><!-- /.box-body -->

            </div><!-- /.box -->

        </div>

    </div>

</section>

<?php $__env->stopSection(); ?>




<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>