<div>
    <?php $__env->startSection('title'); ?>
    Drive | IAEA
    <?php $__env->stopSection(); ?>
    <div class="content d-flex flex-column flex-column-fluid " id="kt_content">
        <!--begin::Subheader-->
        <div class="subheader py-2 py-lg-6 subheader-solid" id="kt_subheader">
            <div class="container-fluid d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap">
                <!--begin::Info-->
                <div class="d-flex align-items-center flex-wrap mr-1">

                </div>
                <!--end::Info-->

            </div>
        </div>
        <!--end::Subheader-->
        <!--begin::Entry-->
        <div class="d-flex flex-column-fluid">
            <!--begin::Container-->
            <div class="container">
                <!--begin::Container-->
                <div class="container">
                    <!--begin::Card-->
                    <div class="card card-custom gutter-b">
                        <div class="card-body">
                            <div class="d-flex">
                                <!--begin: Info-->
                                <div class="flex-grow-1">
                                    <!--begin::Title-->
                                    <div class="d-flex align-items-center justify-content-between flex-wrap">
                                        <!--begin::User-->
                                        <div class="mr-3">
                                            <div class="d-flex align-items-center mr-3">
                                                <!--begin::Name-->
                                                <a href="#" class="d-flex align-items-center text-dark text-hover-primary font-size-h5 font-weight-bold mr-3"><?php echo e($drive->name); ?></a>
                                                <!--end::Name-->
                                            </div>
                                            <!--begin::Contacts-->
                                            <div class="d-flex flex-wrap my-2">
                                                <a href="#" class="text-muted text-hover-primary font-weight-bold mr-lg-8 mr-5 mb-lg-0 mb-2">
                                                    <span class="svg-icon svg-icon-md svg-icon-gray-500 mr-1">
                                                        <!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Communication/Mail-notification.svg-->
                                                        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
                                                            <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                                                <rect x="0" y="0" width="24" height="24" />
                                                                <path d="M21,12.0829584 C20.6747915,12.0283988 20.3407122,12 20,12 C16.6862915,12 14,14.6862915 14,18 C14,18.3407122 14.0283988,18.6747915 14.0829584,19 L5,19 C3.8954305,19 3,18.1045695 3,17 L3,8 C3,6.8954305 3.8954305,6 5,6 L19,6 C20.1045695,6 21,6.8954305 21,8 L21,12.0829584 Z M18.1444251,7.83964668 L12,11.1481833 L5.85557487,7.83964668 C5.4908718,7.6432681 5.03602525,7.77972206 4.83964668,8.14442513 C4.6432681,8.5091282 4.77972206,8.96397475 5.14442513,9.16035332 L11.6444251,12.6603533 C11.8664074,12.7798822 12.1335926,12.7798822 12.3555749,12.6603533 L18.8555749,9.16035332 C19.2202779,8.96397475 19.3567319,8.5091282 19.1603533,8.14442513 C18.9639747,7.77972206 18.5091282,7.6432681 18.1444251,7.83964668 Z" fill="#000000" />
                                                                <circle fill="#000000" opacity="0.3" cx="19.5" cy="17.5" r="2.5" />
                                                            </g>
                                                        </svg>
                                                        <!--end::Svg Icon-->
                                                    </span><?php echo e($drive->user->email); ?></a>
                                                <a href="#" class="text-muted text-hover-primary font-weight-bold mr-lg-8 mr-5 mb-lg-0 mb-2">
                                                    <span class="svg-icon svg-icon-md svg-icon-gray-500 mr-1">
                                                        <!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/General/Lock.svg-->
                                                        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
                                                            <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                                                <mask fill="white">
                                                                    <use xlink:href="#path-1" />
                                                                </mask>
                                                                <g />
                                                                <path d="M7,10 L7,8 C7,5.23857625 9.23857625,3 12,3 C14.7614237,3 17,5.23857625 17,8 L17,10 L18,10 C19.1045695,10 20,10.8954305 20,12 L20,18 C20,19.1045695 19.1045695,20 18,20 L6,20 C4.8954305,20 4,19.1045695 4,18 L4,12 C4,10.8954305 4.8954305,10 6,10 L7,10 Z M12,5 C10.3431458,5 9,6.34314575 9,8 L9,10 L15,10 L15,8 C15,6.34314575 13.6568542,5 12,5 Z" fill="#000000" />
                                                            </g>
                                                        </svg>
                                                        <!--end::Svg Icon-->
                                                    </span><?php echo e($drive->iaea_no); ?></a>
                                                <a href="#" class="text-muted text-hover-primary font-weight-bold">
                                                    <span class="svg-icon svg-icon-md svg-icon-gray-500 mr-1">
                                                        <!--begin::Svg Icon | path:/metronic/theme/html/demo1/dist/assets/media/svg/icons/Map/Marker2.svg-->
                                                        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
                                                            <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                                                <rect x="0" y="0" width="24" height="24" />
                                                                <path d="M9.82829464,16.6565893 C7.02541569,15.7427556 5,13.1079084 5,10 C5,6.13400675 8.13400675,3 12,3 C15.8659932,3 19,6.13400675 19,10 C19,13.1079084 16.9745843,15.7427556 14.1717054,16.6565893 L12,21 L9.82829464,16.6565893 Z M12,12 C13.1045695,12 14,11.1045695 14,10 C14,8.8954305 13.1045695,8 12,8 C10.8954305,8 10,8.8954305 10,10 C10,11.1045695 10.8954305,12 12,12 Z" fill="#000000" />
                                                            </g>
                                                        </svg>
                                                        <!--end::Svg Icon-->
                                                    </span><?php echo e($drive->user->phone); ?></a>
                                            </div>
                                            <!--end::Contacts-->
                                        </div>
                                        <div class="mr-3">

                                            <div class="px-4 mt-4 mb-10">
                                                <a href="<?php echo e(url()->previous()); ?>" class="btn btn-block btn-warning font-weight-bold text-uppercase py-2 px-4 text-center">Go back</a>
                                                <a href="<?php echo e(url('users/messages')); ?>" class="btn btn-block btn-success font-weight-bold text-uppercase py-2 px-4 text-center">Send Message</a>
                                                <?php if(auth()->user()->currentTeam->id==1): ?><a href="<?php echo e(url('engineers/drives/'.$drive->id.'/edit')); ?>" class="btn btn-block btn-primary font-weight-bold text-uppercase py-2 px-4 text-center">Edit</a><?php endif; ?>
                                            </div>

                                        </div>
                                        <!--begin::User-->
                                    </div>
                                    <!--end::Title-->
                                    <!--begin::Content-->
                                    <div class="d-flex align-items-center flex-wrap justify-content-between row">
                                        <!--begin::Description-->

                                        <div class="w-half" style="padding:20px;margin:none">
                                            <img class="img-thumbnail" style="width:100%;border:none; width:200px" src="<?php echo e(asset('public/'.$drive->image)); ?>">
                                        </div>
                                        <!--end::Description-->
                                        <!--begin::Progress-->

                                        <!--end::Progress-->
                                    </div>
                                    
                                    <?php if($exists): ?>
                                    <span class="text-danger">A drive with this serial number already exists</span> <a href="<?php echo e(url('engineers/drives?q='.$drive->serial_no)); ?>" style="text-decoration:underline;">here</a>
                                    <?php endif; ?>
                                    <div class="d-flex align-items-center flex-wrap justify-content-between">
                                        <!--begin::Description-->
                                        <div class="flex-grow-1 font-weight-bold text-dark-50 py-2 py-lg-2 mr-5">Status:
                                            <span class="label label-info btn-lg label-inline mr-2"><?php echo e($drive->status); ?></span>
                                        </div>
                                        <!--end::Description-->
                                        <!--begin::Progress-->
                                        <div class="d-flex mt-4 mt-sm-0">
                                            <span class="font-weight-bold mr-4">Progress on Recovery</span>
                                            <div class="progress progress-xs mt-2 mb-2 flex-shrink-0 w-150px w-xl-500px">
                                                <div class="progress-bar bg-success" role="progressbar" style="width: <?php echo e($drive->progress); ?>%;" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                            </div>
                                            <span class="font-weight-bolder text-dark ml-4"><?php echo e($drive->progress); ?>%</span>
                                        </div>
                                        <!--end::Progress-->
                                    </div>
                                    <!--end::Content-->
                                </div>
                                <!--end::Info-->
                            </div>
                        </div>
                    </div>
                    <!--end::Card-->
                    <!--begin::Row-->
                    <div class="row">
                        <?php if( count($drive->screenshots)!=0): ?>
                        <div class="col-xl-12">
                            <div class="card card-custom gutter-b">
                                <div class="card-header h-auto py-3 border-0">
                                    <div class="card-title">
                                        <h3 class="card-label text-danger">Screenshots</h3>
                                    </div>
                                </div>
                                <div class="card-body pt-2">
                                    <p class="text-dark-50">
                                        <?php $__currentLoopData = $drive->screenshots; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $screenshot): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <img src="<?php echo e(asset('public/'.$screenshot->image)); ?>" style="width:150px; margin-left:auto; margin-right:auto;" />
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></p>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>

                        <div class="col-xl-6">
                            <!--begin::Card-->

                            <?php if($alert!=null): ?>
                            <div class="card card-custom gutter-b">
                                <div class="card-header h-auto py-3 border-0">
                                    <div class="card-title">
                                        <h3 class="card-label text-danger">Important Notice</h3>
                                    </div>
                                </div>
                                <div class="card-body pt-2">
                                    <p class="text-dark-100"><?php echo e($alert->message); ?></p>
                                    <p class="text-dark-50"> Posted On: <?php echo e($alert->created_at); ?></p>
                                </div>

                            </div>
                            <?php endif; ?>

                            <!--end::Card-->
                            <!--begin::Card-->
                            <div class="card card-custom">
                                <!--begin::Header-->
                                <div class="card-header h-auto py-4">
                                    <div class="card-title">
                                        <h3 class="card-label">Details
                                            <span class="d-block text-muted pt-2 font-size-sm"></span></h3>
                                    </div>
                                </div>
                                <!--end::Header-->




                                <!--begin::Body-->
                                <div class="card-body py-4">
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Name:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder"><?php echo e($drive->user->first_name); ?> <?php echo e($drive->user->last_name); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Email:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder"><?php echo e($drive->user->email); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Phone:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder"><?php echo e($drive->user->phone); ?></span>
                                        </div>
                                    </div>



                                    <br />
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Drive Name:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder">
                                                <a href="#"><?php echo e($drive->name); ?></a>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Model No:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder">
                                                <a href="#"><?php echo e($drive->model_no); ?></a>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="form-group row my-2">
                                        <label class="col-4 col-form-label">Serial No:</label>
                                        <div class="col-8">
                                            <span class="form-control-plaintext font-weight-bolder">
                                                <a href="#"><?php echo e($drive->serial_no); ?></a>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <!--end::Body-->
                            </div>
                            <!--end::Card-->
                        </div>




                        <div class="col-xl-6 ">
                            <!--begin::Card-->
                            <div class="card card-custom">
                                <div class="card-header h-auto py-3 border-0">
                                    <div class="card-title">
                                        <h3 class="card-label text-danger">List of Drives</h3>
                                    </div>
                                </div>
                                <div class="card-body">
                                    <!--begin: Datatable-->
                                    <table class="table table-separate table-head-custom table-checkable" id="kt_datatable1">
                                        <thead>
                                            <tr>
                                                <th>Model NO</th>
                                                <th>Drive Name</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php $__currentLoopData = $drives; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $drive): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>

                                                <td><a href="<?php echo e(url('users/drives/'.$drive->id)); ?>"><?php echo e($drive->model_no); ?></a></td>
                                                <td><?php echo e($drive->name); ?></td>
                                            </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                    </table>
                                    <!--end: Datatable-->
                                </div>
                            </div>

                        </div>




                    </div>

                    <!--end::Inbox-->
                    <!--begin::Compose-->

                    <!--end::Compose-->
                </div>
                <!--end::Card-->
            </div>
        </div>
        <!--end::Row-->
    </div>
</div>
<?php /**PATH /home/iaealtdc/public_html/recovery/resources/views/main/users/show.blade.php ENDPATH**/ ?>