
@extends('admin/layouts/contentLayoutMaster')

@section('title', $title)

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

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

            <h4 class="card-title"><a href="{{url('admin/teams')}}" 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>First Name :</td>
                                    <td>{{ $model->first_name }}</td>
                                </tr>
                                 <tr>
                                    <td>Last Name :</td>
                                    <td>{{ $model->last_name }}</td>
                                </tr>
                                <tr>
                                    <td>Email :</td>
                                    <td>{{ $model->email }}</td>
                                </tr>
                                <tr>
                                    <td>Designation :</td>
                                    <td>{{ $model->designation }}</td>
                                </tr>
                                <tr>
                                    <td>Phone :</td>
                                    <td>{{ $model->phone }}</td>
                                </tr>
                                <tr>
                                    <td>Keywords :</td>
                                    <td>{{ $model->keywords }}</td>
                                </tr>
                                <tr>
                                    <td>Linkedin :</td>
                                    <td>{{ $model->linkedin }}</td>
                                </tr>
                                <tr>
                                    <td>Short Description :</td>
                                    <td>{{ $model->short_description }}</td>
                                </tr>
                                <tr>
                                    <td>Meta Description :</td>
                                    <td>{{ $model->meta_description }}</td>
                                </tr>
                                <tr>
                                    <td>Image:</td>
                                        @if ($model->image==null)
                                           <td>None</td>
                                        @else
                                        <td> 
                                            <img width='40' height="40" src="{{asset(Config("params.media_path.thumbnail").$model->image)}}" width="60px">
                                        </td>
                                        @endif
                                </tr>
                                 <tr>
                                    <td>Bio :</td>
                                    <td><div class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light" id="hide">Show</div></td>

                                </tr>
                                <tr id="contentDiv">
                                    <td></td>
                                    @if($model->bio== null)
                                       <td id="data">None</td>

                                    @else
                                    <td id="data">{{ $model->bio }}</td>
                                    @endif

                                </tr>
                                 <tr>
                                    <td>Preview</td>
                                    <td><div class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light" id="previewclick">Preview</div></td>

                                </tr>
                                   <tr>
                                    <td></td>
                                    @if($model->bio== null)
                                       <td id="previewdata">None</td>

                                    @else
                                    <td id="previewdata"><html> <body> <p><?php echo $model->bio;?></p> </body></html></td>
                                    @endif
                                </tr>
                              
                                <tr>
                                    <td>Status :</td>
                                    <td>{{$statuses[$model->status]}}</td>
                                </tr>
                                <tr>
                                    <td>Created_at :</td>
                                    <td>{{ $model->created_at }}</td>
                                </tr>
                                <tr>
                                    <td>Updated_at :</td>
                                    <td>{{ $model->updated_at }}</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 --}}
<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