<?php $__env->startSection('content'); ?>
<div class="col-md-12 content-header" >
    <h1><i class="fa fa-user"></i> 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>Client No.</dt></td>
                                <td><?php echo e($client->client_no); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Email</dt></td>
                                <td><?php echo e($client->email); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Phone</dt></td>
                                <td><?php echo e($client->phone); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Mobile</dt></td>
                                <td><?php echo e($client->mobile); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Address 1</dt></td>
                                <td><?php echo e($client->address1); ?></td>
                            </tr>
                            <tr>
                                <td><dt>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>City</dt></td>
                                <td><?php echo e($client->city); ?></td>
                            </tr>
                            <tr>
                                <td><dt>State / Province</dt></td>
                                <td><?php echo e($client->state); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Postal / Zip Code</dt></td>
                                <td><?php echo e($client->postal_code); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Country</dt></td>
                                <td><?php echo e($client->Country); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Website</dt></td>
                                <td><?php echo e($client->website); ?></td>
                            </tr>
                            <tr>
                                <td><dt>Address 2</dt></td>
                                <td><?php echo e($client->address2); ?></td>
                            </tr>
                            <tr>
                                <td><dt>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-info">
                <div class="box-header with-border">
                    <h3 class="box-title"><i class="fa fa-file-pdf-o"></i> INVOICES</h3>
                </div>
                <div class="box-body">
                        <table class="table table-bordered table-striped table-hover datatable">
                            <thead>
                            <tr>
                                <th></th>
                                <th>Invoice No.</th>
                                <th>Status</th>
                                <th>Date</th>
                                <th>Due Date</th>
                                <th>Amount</th>
                                <th>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> View </a>
                                </td>
                            </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                </div><!-- /.box-body -->
            </div><!-- /.box -->
        </div>
        <div class="col-md-12">
            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title"><i class="fa fa-quote-left"></i> ESTIMATES</h3>
                </div>
                <div class="box-body">
                    <table class="table table-bordered table-striped table-hover datatable">
                        <thead>
                        <tr>
                            <th></th>
                            <th>Estimate No.</th>
                            <th>Date</th>
                            <th>Amount</th>
                            <th>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> 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(); ?>