<!-- Default Modals -->

<style>
    .btn-download-icon{
        background: transparent;
        border: 1px solid #00000080;
        color: #000000;
    }
</style>

<?php
use App\Models\Mongo;

            $tb_case = Mongo::table("tb_case")->where("_id" , $cid)->first();
            // dd($vdo)
            $count_video    =   count($vdo);
            $count_photo    =   count($tb_case['photo']);

?>
<div id="modal_download" class="modal fade" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-dialog-centered " style="max-width: 40%">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="myModalLabel">Download</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"> </button>
            </div>
            <div class="col-12 m-0 p-0"><hr></div>
            <div class="modal-body p-1">
                <span class="fs-15 ms-2 text-muted">
                    Select file to Download
                </span>

                <div class="row p-4 mt-2">

                    <div class="col-12 align-self-center" >
                        <h5>Photo (<?php echo e($count_photo); ?>)</h5>

                        <div class="d-flex justify-content-between p-2">
                             <span>All Photo</span>

                            <a href="<?php echo e(domainname("temp\photo_".$case->procedurename."_$case->case_hn"."_"."$case->appointment_date.zip")); ?>" download>
                                  <i class="ri-download-2-line ri-lg" id="download_photo"></i>
                            </a>
                        </div>
                    </div>
                    <div class="col-12"><hr></div>



                    <div class="col-12 align-self-center ">

                        <h5>Video (<?php echo e($count_video); ?>)</h5>
                        <div class="d-flex justify-content-between p-2">
                            <?php $__empty_1 = true; $__currentLoopData = $vdo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $video_data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <span><?php echo e($video_data); ?></span>
                                <a href="<?php echo e(domainname("store/$case->case_hn/$case->appointment_date/vdo/$video_data")); ?>" download>
                                    <i class="ri-download-2-line ri-lg" id="download_photo"></i>
                                </a>

                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                ยังไม่มีการถ่ายวีดีโอ
                            <?php endif; ?>

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

            </div>
        </div>
    </div>
</div>
<?php /**PATH D:\laragon\htdocs\screening\resources\views/capture/case/component/modal/modal_downloadVdo.blade.php ENDPATH**/ ?>