<!-- <div  id="div1"
 (drop)="drop($event)"
 (dragover)="allowDrop($event)">

 <img
 src="https://images.pexels.com/photos/658687/pexels-photo-658687.jpeg?auto=compress&cs=tinysrgb&h=350"
 draggable="true"
 (dragstart)="drag($event)"
 id="drag1"
 width="88"
 height="31">
</div>

<div id="div2"
(drop)="drop($event)"
(dragover)="allowDrop($event)">
</div> -->
<app-main-header></app-main-header>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
<body class="col-md-12 float-left body_cls">
    <div class="container mt-10 col-md-12 float-left body_cls">
        <div class="col-md-12  rel_cls">


            <div class=" float-left padr-0 drop_box" id="div2" (drop)="drop1($event)" (dragover)="allowDrop1($event)">
                    <img  class="drop_img" src="assets/img/drop.png" alt="" />
            </div>

            <div class="col-md-12 float-right padl_0 scroll_topbox ht_cls comp-head" style="position:relative;">
                <div class="col-md-4 float-left padr-0 ht_cls">
                    <div class="top_image_header">
                        <a  class="wid3_font col-md-12">
                            <img src="assets/images/back.png" routerLink="/threesixty-dashboard" class="wid3"><span class="span_img" routerLink="/threesixty-dashboard"><b>{{main_model_name}}</b></span>
                            <img class="bot_img_cls_1" src={{main_model_image}} alt="" />
                        </a>

                    </div>
                </div>
                <div class="col-md-3 right-content float-left padr-0 ht_cls" *ngFor="let drop_item of droped_list;let k=index;" >
                    <div class="top_image_header">
                        <h4 class="close_mark" (click)="removeDragItem(k,drop_list_image[k].model_id)">X</h4>
                        <img src={{drop_list_image[k].model_image_url}} class="bot_img_cls" style="float:right">
                        <span class="mod_nme_cls" style="width:auto;">
                            <h6 class="title_cls">{{drop_list_image[k].model_name}} </h6>
                        </span>
                    </div>
                </div>
            </div>

            <div class="col-md-12 float-right padl_0 scroll_topbox ht_cls" style="position:relative;">
                    <div class="col-md-4 float-left padr-0 ht_cls">
                            <!-- <div class="top_image_header">
                                <a  class="wid3_font col-md-12">
                                    <img src="assets/images/back.png" routerLink="/threesixty-dashboard" class="wid3"><span class="span_img" routerLink="/threesixty-dashboard"><b>{{main_model_name}}</b></span>
                                    <img class="bot_img_cls_1" src={{main_model_image}} alt="" />
                                </a>

                            </div> -->
                            <div class="panel-group ht_cls" id="accordion4" role="tablist" aria-multiselectable="true">
                                <div class="panel panel-default" style="width: 100%;">
                                    <div class="panel-heading" role="tab" id="headingOne4" *ngFor="let item of compare_title;let i=index">
                                        <h4 class="panel-title panel_line" (click)="clickColapse(i)">
                                            <a class="title-hide" id="btn_{{i}} title_arrow">
                                                {{item.title}}
                                            </a>
                                        </h4>
                                        <div class="elements_{{i}}">
                                            <div class="panel-body">
                                                <div class="table-responsive">
                                                    <table class="table" *ngFor="let item of compare_title[i].fields;let j=index">
                                                        <thead>
                                                            <tr>
                                                                <th> {{item.title}}</th>
                                                                <td> {{item.value}} </td>
                                                            </tr>
                                                        </thead>
                                                    </table>
                                                 </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                <div class="col-md-3 right-content float-left padr-0 ht_cls" *ngFor="let drop_item of droped_list;let k=index;" >
                    <!-- <div class="top_image_header">
                        <h4 class="close_mark" (click)="removeDragItem(k,drop_list_image[k].model_id)">X</h4>
                        <img src={{drop_list_image[k].model_image_url}} class="bot_img_cls" style="float:right">
                        <span class="mod_nme_cls" style="width:auto;">
                            <h6 class="title_cls">{{drop_list_image[k].model_name}} </h6>
                        </span>
                    </div> -->
                    <div class="panel-group ht_cls" id="accordion4" role="tablist" aria-multiselectable="true">
                        <div class="panel panel-default" style="width: 100%;">
                            <div class="panel-heading" role="tab" id="headingOne4" *ngFor="let item of compare_title;let i=index">
                                <h4 class="panel-title panel_line " (click)="clickColapse(i)">
                                    <a class="title-hide" id="btn_{{i}} title_arrow">

                                    </a>
                                </h4>
                                <div class="elements_{{i}} ">
                                    <div class="panel-body">
                                        <div class="table-responsive">
                                            <table class="table" *ngFor="let item of drop_item[i].fields;let j=index">
                                                <thead>
                                                    <tr>
                                                        <!-- <td *ngIf="item.is_equal!=1 && item.value!=''"> {{item.value}} </td>
                                                        <td *ngIf="item.is_equal!=1 && item.value==''"> <img class="checked24" src="assets/img/cancel.png">  </td>
                                                        <td *ngIf="item.is_equal==1"> <img class="checked24" src="assets/img/checked-icon.png"> </td> -->
                                                        <td>{{item.value}}</td>
                                                        <!-- <td *ngIf="item.is_equal!=1 || item.value=='' || item.value=='-'"> - </td> -->
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>

                    </div>
                </div>

            </div>
            <!-- <div class="col-md-4 float-right padl_0 scroll_bottombox" style="overflow:hidden">
            </div> -->
            <div class="col-md-12 float-right padl_0 scroll_bottombox table-responsive">
                <div class="image_arr_box">
                <div *ngFor="let item of compare_model_arr;let i=index;" class="img_drag_box" [ngClass]="{'grey_img_box':!item.model.value}">
                    <!-- <img (drop)="drop($event)" style="position:absolute;left:0" (dragover)="allowDrop($event)" draggable="true" (dragstart)="drag($event)"
                        id="{{i}}" src={{item.model.model_image_url}} class="bot_img_cls" *ngIf="item.model.value"> (click)="addCompareModel(i)" -->
                     <div *ngIf="item.model.value" (click)="addCompareModel(i)" >
                        <img src={{item.model.model_image_url}} class="bot_img_cls drag_fixed_img" >
                        <span class="mod_nme_cls">
                            <h6>{{item.model.model_name}} </h6>
                        </span>
                     </div>
                     <div *ngIf="!item.model.value" class="grey_img_box">
                            <img src={{item.model.model_image_url}} class="bot_img_cls drag_fixed_img" >
                            <span  class="mod_nme_cls grey_img_box" >
                                <h6>{{item.model.model_name}} </h6>
                            </span>
                         </div>
                </div>
                </div>

             </div>
             <!-- <div>
                    <h4 class='info_txt'>Click to compare model</h4>
            </div> -->
            <!-- <div class="col-md-4 float-right padl_0 scroll_bottombox" style="overflow:hidden">

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

</body>

<app-footer></app-footer>
<app-sidemenu></app-sidemenu>
