
@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/enquire')}}" class=" mr-1 btn-icon btn btn-primary btn-round btn-sm"><i class="feather icon-arrow-left"></i></a> {{$title}}</h4>
        </div>
        <div class="card-content">
            <div class="card-body">

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

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Name :</td>
                                    <td>{{ $model->name }}</td>
                                </tr>
                               <tr>
                                    <td>Email :</td>
                                    <td>{{ $model->email }}</td>
                                </tr>
                                <tr>
                                    <td>Phone Number</td>
                                    <td>{{ $model->phone }}</td>

                                </tr>
                                <tr>
                                    <td>Type</td>
                                    <td>{{ $model->type }}</td>

                                </tr>
                                <tr>
                                    <td>Message</td>
                                    <td>{{ $model->message }}</td>

                                </tr>
                                <tr>
                                    <td>Status</td>
                                    <td>{{$statuses[$model->status]}}</td>
                                </tr>
                            </tbody>
                        </table>

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

</section>
<!--@if($model->type=="tour")
<section id="add-row">
    <div class="card">
        <div class="card-header">
            <h4 class="card-title">{{ucwords($model->type)}}</h4>
        </div>
        <div class="card-content">
            <div class="card-body">

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

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Title :</td>
                                    <td>{{ $detail->title }}</td>
                                </tr>
                               <tr>
                                    <td>City :</td>
                                    <td>{{ $detail->city }}</td>
                                </tr>
                                <tr>
                                    <td>Price</td>
                                    <td>{{ $detail->price }}</td>

                                </tr>
                                <tr>
                                    <td>Persons</td>
                                    <td>{{ $detail->persons }}</td>

                                </tr>
                                <tr>
                                   @if($detail->image)

                                    <td>Image</td>
                                    <td> <img width='40' height="40" src="{{url(Config("params.media_path.thumbnail")).'/'.$detail->image}}" width="60px"></td>
                                   @endif
                                </tr>
                               <tr>
                                    <td>More Information</td>
                                    <td><a href="{{url('tour/'.$detail->key)}}">click here</a></td>

                                </tr>
                            </tbody>
                        </table>

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

</section>
@endif
@if($model->type=="hotel")
<section id="add-row">
    <div class="card">
        <div class="card-header">
            <h4 class="card-title">{{ucwords($model->type)}}</h4>
        </div>
        <div class="card-content">
            <div class="card-body">

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

                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <td>Title :</td>
                                    <td>{{ $detail->title }}</td>
                                </tr>
                                <tr>
                                    <td>Email :</td>
                                    <td>{{ $detail->email }}</td>
                                </tr>
                               <tr>
                                    <td>Address :</td>
                                    <td>{{ $detail->address1 }}{{$detail->address2}}</td>
                                </tr>
                                <tr>
                                    <td>Phone</td>
                                    <td>{{ $detail->phone1 }}</td>

                                </tr>
                                <tr>
                                    <td>Persons</td>
                                    <td>{{ $detail->guests }}</td>

                                </tr>
                                <tr>
                                    <td>Bed</td>
                                    <td>{{ $detail->beds }}</td>

                                </tr>
                                                                <tr>
                                    <td>Bathroom</td>
                                    <td>{{ $detail->bathrooms }}</td>

                                </tr>
                                @if($detail->image)
                                <tr>
                                    <td>Image</td>
                                    <td> <img width='40' height="40" src="{{url(Config("params.media_path.thumbnail")).'/'.$detail->image}}" width="60px"></td>

                                </tr>
                              @endif
                              <tr>
                                    <td>More Information</td>
                                    <td><a href="{{url('hotel/'.$detail->key)}}">click here</a></td>

                                </tr>
                            </tbody>
                        </table>

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

</section>
@endif-->
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
@endsection
@include('vendor_script')
@section('myscript')
{{-- Page js files --}}
<script>
$( document ).ready(function() {
     $("#data").hide();
     $("#previewdata").hide();
     
$("#hide").click(function(){
   $("#data").toggle();
    $(this).toggleClass('class1')
 
});
$("#previewclick").click(function(){
   $("#previewdata").toggle();
    $(this).toggleClass('class1')
 
});


});

</script>
<script>
        CKEDITOR.config.allowedContent = true;

    CKEDITOR.replace( 'summary-ckeditor' );
</script>
@endsection
