
            <div class="row">
                <div class="col-4">
                    <div class="card mb-4">
                        <div class="card-header text-bg-info mb-2 p-2"><h4 class="text-capitalize mb-0 px-3 text-white"><?php echo e($stage); ?></h3></div>
                        <div class="card-body">
                          <small class="card-text text-uppercase">About</small>
                          <ul class="list-unstyled mb-4 mt-3">
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-user text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">Full Name:</span> <span><?php echo e($ticket->name); ?></span></li>
                           
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-building text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">Occupation:</span> <span><?php echo e($ticket->occupation); ?></span></li>
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-flag text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">Country:</span> <span><?php echo e($ticket->country); ?></span></li>
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-map text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">City:</span> <span><?php echo e($ticket->city); ?></span></li>
                                <li class="mb-2"><i class="ti ti-list-details text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">Detail</span></li>
                                <li><span><?php echo e($ticket->detail); ?></span></li>
                            
                                
                            
                          </ul>
                          <small class="card-text text-uppercase">Inquiry</small>
                          <ul class="list-unstyled mb-4 mt-3">
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-flag"></i><span class="fw-medium mx-2 text-heading">Country:</span> <span><?php echo e(@$ticket->inquiry_country); ?></span></li>
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-stars"></i><span class="fw-medium mx-2 text-heading">Service:</span> <span><?php echo e(@$ticket->service->name); ?></span></li>
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-check text-heading"></i>
                                <span class="fw-medium mx-2 text-heading">Status:</span> <span><?php echo e(Common::InquiryType($ticket->inquiry_status??1)); ?></span></li>
                          </ul>
                          <small class="card-text text-uppercase">Contacts</small>
                          <ul class="list-unstyled mb-4 mt-3">
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-phone-call"></i><span class="fw-medium mx-2 text-heading">Contact:</span> <span><a href="tel:<?php echo e($ticket->phone); ?>"><?php echo e($ticket->phone); ?></a></span></li>
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-mail"></i><span class="fw-medium mx-2 text-heading">Email:</span> <span><a href="mail:<?php echo e($ticket->email); ?>"><?php echo e($ticket->email); ?></a></span></li>
                          </ul>
                          <small class="card-text text-uppercase">Teams</small>
                          <ul class="list-unstyled mb-0 mt-3">
                            <li class="d-flex align-items-center mb-3"><i class="ti ti-user text-danger me-2"></i>
                              <div class="d-flex flex-wrap"><span class="fw-medium me-2 text-heading">Generated By:</span><span><?php echo e($ticket->user->name); ?></span></div>
                            </li>
                            <li class="d-flex align-items-center"><i class="ti ti-user text-info me-2"></i>
                              <div class="d-flex flex-wrap"><span class="fw-medium me-2 text-heading">Assigned To:</span>
                                <?php if($type == IConstants::REFRENCE_TYPE_TICKET): ?>
                                <span><?php echo e(@$ticket->advisor->name); ?></span>
                                <?php endif; ?>
                                <?php if($type == IConstants::REFRENCE_TYPE_QUERY): ?>
                                <span><?php echo e(@$ticket->cro->name); ?></span>
                                <?php endif; ?>
                            </div>
                            </li>
                          </ul>
                        </div>
                      </div>
                </div>
                <div class="col-8">
                    <div class="card mb-4">
                        <div class="card-body">
                          <small class="card-text text-uppercase">Activity</small>
            <?php echo Form::open(['route' => ['activities.store'],'id'=>'formajax2']); ?>

            <input type="hidden" id="reload_modal" value="<?php echo e(route('activities.create', ['ticket_id'=>$ticket->id,'type'=>request('type'),'activity_type'=>request('activity_type')])); ?>" />
            

                <div class="row">
                    <?php echo $__env->make('activities.fields', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>

            <div class="action-btn">
                <?php echo Form::submit('Save', ['class' => 'btn btn-info']); ?>

            </div>

            <?php echo Form::close(); ?>

            <br>
            <br>
            <br>
            <br>

            <ul class="timeline" style="height:400px; overflow:auto;padding:20px;">

                <?php $__currentLoopData = $activities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    if($activity->activity_type == IConstants::ACTIVITY_TYPE_CALL){
                        $class = 'primary';
                        $icon = 'phone';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_MEETING){
                        $class = 'success';
                        $icon = 'heart-handshake';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_MESSAGE){
                        $class = 'info';
                        $icon = 'message';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_EMAIL){
                        $class = 'warning';
                        $icon = 'mail';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_CLOSE){
                        $class = 'danger';
                        $icon = 'ticket-off';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_TRANSFER){
                        $class = 'secondary';
                        $icon = 'transfer-in';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_REMARKETING){
                        $class = 'dark';
                        $icon = 'bookmark';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_REQUALIFY){
                        $class = 'dark';
                        $icon = 'checks';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_CONTACTAGAIN){
                        $class = 'danger';
                        $icon = 'rotate';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_GENERALSALE){
                        $class = 'success';
                        $icon = 'circle-check';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_QUERYGENERATED){
                        $class = 'primary';
                        $icon = 'brand-databricks';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_TICKETGENRATED){
                        $class = 'primary';
                        $icon = 'ticket';
                    }else{
                        $class = 'info';
                        $icon = 'send';
                    }
                ?>
                    <li class="timeline-item pb-4 timeline-item-<?php echo e($class); ?> border-left-dashed">
                        <span class="timeline-indicator-advanced timeline-indicator-<?php echo e($class); ?>">
                        <i class="ti ti-<?php echo e($icon); ?>"></i>
                        </span>
                        <div class="timeline-event">
                        <div class="timeline-header border-bottom mb-3">
                            <h6 class="mb-0">
                                <?php echo e(Common::ActivityType($activity->activity_type)); ?>

                            </h6>
                            <span class="text-muted"></span>
                            <span class="text-muted"><?php echo e($activity->created_at->format('d-m-Y h:i A')); ?> (<?php echo e($activity->created_at->diffForHumans()); ?>)</span>
                        </div>
                        
                        <p>
                            <?php if($activity->activity_type == IConstants::ACTIVITY_TYPE_TRANSFER): ?>
                                <?php if($type == IConstants::REFRENCE_TYPE_TICKET): ?>
                                    <span class="text-success">Tarnsferred to <?php echo e(@$ticket->advisor->name); ?></span><br/>
                                <?php endif; ?>
                                <?php if($type == IConstants::REFRENCE_TYPE_QUERY): ?>
                                    <span class="text-success">Tarnsferred to <?php echo e(@$ticket->cro->name); ?></span><br/>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php echo e($activity->comment); ?></p>
                        <div class="d-flex justify-content-between">
                            <h6 class="text-warning"><?php if(isset($activity->followup_date)): ?>Follow Up: <?php echo e(date('d-m-Y h:i A',strtotime($activity->followup_date))); ?><?php endif; ?></h6>
                            <div class="d-flex">
                                <i class="ti ti-user text-<?php echo e($class); ?>"></i>&nbsp;<small><em><?php echo e($activity->user->name); ?></em></small>

                            </div>
                        </div>
                        <div style="float: right;">
                        </div>
                    
                        </div>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php if($queryActivities): ?>
              <?php $__currentLoopData = $queryActivities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    if($activity->activity_type == IConstants::ACTIVITY_TYPE_CALL){
                        $class = 'primary';
                        $icon = 'phone';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_MEETING){
                        $class = 'success';
                        $icon = 'heart-handshake';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_MESSAGE){
                        $class = 'info';
                        $icon = 'message';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_EMAIL){
                        $class = 'warning';
                        $icon = 'mail';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_CLOSE){
                        $class = 'danger';
                        $icon = 'ticket-off';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_TRANSFER){
                        $class = 'secondary';
                        $icon = 'transfer-in';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_REMARKETING){
                        $class = 'dark';
                        $icon = 'bookmark';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_REQUALIFY){
                        $class = 'dark';
                        $icon = 'checks';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_CONTACTAGAIN){
                        $class = 'danger';
                        $icon = 'rotate';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_GENERALSALE){
                        $class = 'success';
                        $icon = 'circle-check';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_QUERYGENERATED){
                        $class = 'primary';
                        $icon = 'brand-databricks';
                    }elseif($activity->activity_type == IConstants::ACTIVITY_TYPE_TICKETGENRATED){
                        $class = 'primary';
                        $icon = 'ticket';
                    }else{
                        $class = 'info';
                        $icon = 'send';
                    }
                ?>
                    <li class="timeline-item pb-4 timeline-item-<?php echo e($class); ?> border-left-dashed">
                        <span class="timeline-indicator-advanced timeline-indicator-<?php echo e($class); ?>">
                        <i class="ti ti-<?php echo e($icon); ?>"></i>
                        </span>
                        <div class="timeline-event">
                        <div class="timeline-header border-bottom mb-3">
                            <h6 class="mb-0"><?php echo e(Common::ActivityType($activity->activity_type)); ?></h6>
                            <span class="text-muted"></span>
                            <span class="text-muted"><?php echo e($activity->created_at->format('d-m-Y h:i A')); ?> (<?php echo e($activity->created_at->diffForHumans()); ?>)</span>
                        </div>
                        
                        <p><?php echo e($activity->comment); ?></p>
                        <div class="d-flex justify-content-between">
                            <h6 class="text-warning"><?php if(isset($activity->followup_date)): ?>Follow Up: <?php echo e(date('d-m-Y h:i A',strtotime($activity->followup_date))); ?><?php endif; ?></h6>
                            <div class="d-flex">
                                <i class="ti ti-user text-<?php echo e($class); ?>"></i>&nbsp;<small><em><?php echo e($activity->user->name); ?></em></small>

                            </div>
                        </div>
                        <div style="float: right;">
                        </div>
                    
                        </div>
                    </li>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
              
            </ul>

            </div>
            </div>
            </div>
        </div><?php /**PATH D:\projects\maksoft\saadahsan\resources\views/activities/create.blade.php ENDPATH**/ ?>