
@extends('admin/layouts/contentLayoutMaster')

@section('title', $title)

@section('vendor-style')
{{-- vednor css files --}}
@endsection
@section('content')
<!-- Add rows table -->
<?php
$statuses = Config::get('params.statuses');
?>
<section id="add-row">

    <div class="card">
        <div class="card-header">

            <h4 class="card-title"><a href="{{url('admin/transactions')}}" class="mr-1  btn-icon btn btn-primary btn-round btn-sm"><i class="feather icon-arrow-left"></i></a><?php if(!empty($title)) echo $title; ?> ({{ $model->invoiceNumber }})</h4>

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

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

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Invoice Number :</td>
                                    <td>{{ $model->invoiceNumber }}</td>
                                </tr>
                                <tr>
                                    <td>Payment Method :</td>
                                    <td>{{ $model->paymentMethod }}</td>
                                </tr>
                                <tr>
                                    <td>Price :</td>
                                    <td>{{ $model->price }}</td>
                                </tr>
                                <tr>
                                    <td>Boiler Age :</td>
                                    <td>{{ $model->boilerAge }}</td>
                                </tr>
                                <tr>
                                    <td>Type :</td>
                                    <td>{{ $model->type	 }}</td>
                                </tr>
                                  <tr>
                                    <td>Vat :</td>
                                    <td>{{ $model->vat }}</td>
                                </tr>
                                  <tr>
                                    <td>Total :</td>
                                    <td>{{ $model->total }}</td>
                                </tr>
                                <tr>
                                    <td>Start Date :</td>
                                    <td>{{ $model->startDate }}</td>
                                </tr>
                                  <tr>
                                    <td>Confirmed :</td>
                                    <td>{{ $model->confirmed }}</td>
                                </tr>
                                <tr>
                                    <td>Status :</td>
                                    <td>{{$model->status ? 'Active' : 'Inactive'}}</td>
                                </tr>

                                <tr>
                                    <td>Created:</td>
                                    <td>{{ $model->created_at }}</td>
                                </tr>
                                <tr>
                                    <td>Last Updated:</td>
                                    <td>{{ $model->updated_at }}</td>
                                </tr>
                                
                            </tbody>
                        </table>

                    </div>
                    <div class="col-sm-6">
                         <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Title :</td>
                                    <td>@if(!empty($model->customers->title)) {{ $model->customers->title }} @endif</td>
                                </tr>
                                <tr>
                                    <td>First Name :</td>
                                    <td>@if(!empty($model->customers->firstName )) {{ $model->customers->firstName }} @endif</td>
                                </tr>
                                <tr>
                                    <td>Last Name :</td>
                                    <td>@if(!empty($model->customers->lastName)) {{ $model->customers->lastName }} @endif</td>
                                </tr>
                                <tr>
                                    <td>Email :</td>
                                    <td>@if(!empty($model->customers->email)) {{ $model->customers->email }} @endif</td>
                                </tr>
                                <tr>
                                    <td>Phone :</td>
                                    <td>@if(!empty($model->customers->phone)) {{ $model->customers->phone }} @endif</td>
                                </tr>
                                
                                
                            </tbody>
                        </table>
                        
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="card">
         <div class="card-content">
            <div class="card-body">

                <div class="row">
                    <div class="card-header">

                        <h4 class="card-title"><a href="{{url('admin/transactions')}}" class="mr-1  btn-icon btn btn-primary btn-round btn-sm"><i class="feather icon-arrow-left"></i></a>Package</h4>

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

                        <table class="table table-bordered">
                            <tbody>
                               
                                <tr>
                                    <td>Title :</td>
                                    <td>@if(!empty($model->package->title)) {{ $model->package->title }}  @endif</td>
                                </tr>
                                <tr>
                                    <td>Position :</td>
                                    <td>{{ $model->package->position }}</td>
                                </tr>
                                <tr>
                                    <td>Description :</td>
                                    <td><?php echo($model->package->description )?></td>
                                </tr>
                                <tr>
                                    <td>Image :</td>
                                    @if(!empty($model->package->image))
                                    <td><img width="100" height="100" src="{{asset(Config("params.media_path.large").$model->package->image)}}"/></td>
                                    @else
                                    <td>None</td>
                                    @endif
                                </tr>
                                <tr>
                                    <td>Package Category :</td>
                                    <td>{{$model->package->category->title}}</td>
                                </tr>
                                <tr>
                                    <td>Package Category Description :</td>
                                    <td><?php echo $model->package->category->description;?></td>
                                </tr>
                                
                                
                               
                            </tbody>
                        </table>

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

</section>
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
@endsection
@include('vendor_script')
@section('myscript')
{{-- Page js files --}}
@endsection