@if(\Illuminate\Support\Facades\Session::has('Hide_Customer_Documents|-69'))
    <style>
        .doc-list-non-clickable a,
        .doc-list-non-clickable .show-object-view-init {
            pointer-events: none !important;
            color: #888 !important;
            text-decoration: none !important;
            cursor: default !important;
        }
    </style>
@endif
<div class="doc-list-non-clickable">
<?php
    $systemDocuments = ['merchant_disbursed','loan_agreement_esign','equifax_report','sanction_letter','pro_forma_invoice','co_applicant_cam_image','customer_cam_image','proforma','recall_notice','welcome_letter','original_seen','original_seen_verified','bounce','penal','epf-report','utility_validation_report','credit_appraisal_memo','national_identity_card_back','national_identity_card_front','live_video','onfido_check_report','live_photo','driving_licence_back','driving_licence_front','passport_front','passport_back','e mandate','digio-report-applicant','digio report applicant','digio-report-coapplicant'];
    $deleteDocument = 0;
    if(\Illuminate\Support\Facades\Session::has('Document_Delete|-25')){
        $deleteDocument = 1;
    }
    $m_generated = [];
    ?>
    @if(isset($files) && $files)
        <ul style="list-style:none;">
            @foreach($files as $key =>  $file)
                @if(!$file->m_generated)
                @if(isset($file->file_path))
                    @if(\Illuminate\Support\Facades\Session::has('Hide_Customer_Documents|-69'))
                        <?php $file->file_path = '';?>
                    @endif
                    @if(strpos($file->file_path, 'res.cloudinary.com/') !== false)
                        <li><i class="fa fa-file-pdf-o"></i><a target="_blank" style="color: black;margin-left: 9px;" href="{!! $file->file_path !!}">@if($file->file_type == 'call_recording') Verification Call @else {!! $file->file_type !!} @endif</a> @if($file->password)<span style="font-weight: 600;font-size: 11px;">[Password - {!! $file->password !!}]</span>@endif</li>
                    @else
                        <?php $full_path = '/admin/consumer-application/get-documents/'; $short_path = isset($file->file_path) && !empty($file->file_path) ? $file->file_path : $consumer_applications->id.'/'.$file->file_type.'.pdf';
                        $full_path .= $short_path;
                        $full_path = str_replace('//','/',$full_path);
                        $name_file_type_v = strpos($file->file_type, 'bounce') !== false ? 'bounce' : (strpos($file->file_type, 'penal') !== false ? 'penal' : (strpos($file->file_type, '_validation_report') !== false ? 'utility_validation_report' : $file->file_type));
                        ?>
                        @if(!$file->masked_doc || ($file->masked_doc || $file->file_type != 'aadhar_card'))
                            @if($file->f_type != @$files[$key-1]->f_type || $key == 0)
                            <span style="font-size: 15px;font-weight: 500;">{{$file->f_type}}</span>
                            @endif
                            <li @if(isset($file->is_latest)) style="color:red;" @endif>
                                <?php $statusLists = ['disbursement checklist done','ready for disbursement','disbursed','nach registered'];
                                    if($consumer_applications->lender_id == \App\Singularity\Singularity::$lender_id){
                                        array_push($statusLists, 'cf approved');
                                        array_push($statusLists, 'pre approved');
                                    }
                                ?>
                                @if(isset($file->tp_key) && isset($file->tp_key[$file->file_type]) && isset($file->tp_key_av[$file->file_type]) && in_array($consumer_applications->state, $statusLists))
                                    @if($consumer_applications->lender_id == \App\ABFL\Services\Services::$lender_id)
                                        <i><img style="width:18px;" src="/assets/front/img/abfl.jpeg"/></i>
                                    @elseif($consumer_applications->lender_id == \App\Avanse\Services\AvanseServices::$lender_id)
                                        <i><img style="width:18px;" src="/assets/front/img/avanse.png"/></i>
                                    @elseif($consumer_applications->lender_id == \App\Singularity\Singularity::$lender_id)
                                        <i><img style="width:14px;" src="/assets/front/img/singularity_credit_logo.jpeg"/></i>
                                    @endif
                                @elseif(isset($file->tp_key) && isset($file->tp_key[$file->file_type]) && !isset($file->tp_key_av[$file->file_type]) && (in_array($consumer_applications->state, $statusLists) || isset($consumer_applications->avanseByApplicant->id)))
                                    <i style="cursor: pointer;" class="send_to_avanse_document fa fa-upload" data-lender-id="{!! $consumer_applications->lender_id !!}" data-file-id="{!! $file->id !!}" data-file-name="{!! $file->tp_key[$file->file_type] !!}" data-id="{!! $consumer_applications->id !!}"></i>
                                @elseif(isset($file->tp_key) && isset($file->tp_key[$file->file_type]) && !isset($file->tp_key_av[$file->file_type]) && (in_array($consumer_applications->state, $statusLists) && $consumer_applications->lender_id == \App\KMGP2P::$lender_id))
                                    <i style="cursor: pointer;" class="send_to_avanse_document fa fa-upload" data-lender-id="{!! $consumer_applications->lender_id !!}" data-file-id="{!! $file->id !!}" data-file-name="{!! $file->tp_key[$file->file_type] !!}" data-id="{!! $consumer_applications->id !!}"></i>
                                @endif
                                @if($deleteDocument && !in_array($name_file_type_v, $systemDocuments))<i style="cursor: pointer;" class="document-trash-del fa fa-trash" data-id="{!! $file->id !!}"></i>@elseif(isset($file->tp_key) && isset($file->tp_key[$file->file_type]))<i style="cursor: pointer;" class="document-trash-del fa fa-trash" data-id="{!! $file->id !!}"></i>@endif
                                    @if(!$file->accountUID && strpos($file->file_type, 'bank_statement') !== false)
                                    @if($file->finbit_analysis_date)
                                        <a @if($file->bank_name) href="/admin/consumer-application/download-report-finbit/{!! $file->id !!}"
                                        @endif 
                                        data-id="{!! $file->id !!}" style="text-decoration: none;"><i class="fa fa-download" title="Download FinBit Report"></i></a> &nbsp;
                                        <i type="button" class="fa fa-exclamation-triangle" onclick="$(this).popover({placement: 'left'});" style="color:red;" data-toggle="popover" title="Finbit Analysis Failed" data-content="<?php echo date('d M, Y H:i:s', strtotime($file->finbit_analysis_date)) ?> ({!! $file->bank_name !!}) - {!! $file->statementtype !!}, {!! $file->statemenfilettype !!}"></i>
                                    @endif
                                @endif
                                @if(!isset($file->UtilityValidation->id) && $file->customer_id && $file->provider && (strpos($file->file_type, 'electricity_bill') !== false || strpos($file->file_type, 'gas_bill') !== false))
                                    <i style="cursor: pointer;" data-id="{!! $file->id !!}" class="validation-utility-bill fa fa-download" title="Validate Bill"></i>
                                @elseif(isset($file->UtilityValidation->id))
                                    <i style="color:green;" class="fa fa-check-circle"></i>
                                @endif
                                <i class="fa fa-file-pdf-o"></i>
                                <a target="_blank" style="cursor:pointer;color: black;margin-left: 9px; @if(isset($file->is_latest)) color:red; @endif"
                                   @if(0 < count(array_intersect(array_map('strtolower', explode('.', $full_path)), ['jpeg','png','gif', 'pdf'])) && strpos($full_path, 'recording') == false)
                                   data-link="{!! $full_path !!}" class="show-object-view-init" data-name="{!!$file->file_type!!}"
                                   @else
                                   href="{!! $full_path !!}" data-name="{!!$file->file_type!!}"
                                        @endif>
                                    @if($file->file_type == 'call_recording')
                                        Verification Call
                                    @elseif($file->file_type && strpos($file->file_type, 'pro_forma_invoice') !== false && (empty($file->created_by ) || ($file->created_by) == 107 ))
                                        Disbursement Advice
                                    @elseif($file->file_type && strpos($file->file_type, 'pro_forma_invoice') !== false)
                                        Merchant Email confirmation/Signed DA
                                    @elseif($file->file_type && strpos($file->file_type, 'proforma') !== false)
                                        Final quotation/Final Bill
                                    @elseif ($file->file_type && strpos($file->file_type, 'pirimid_analysis_excel') !== false)
                                        PIRIMID Bank Analysis Excel
                                    @else
                                        @if(strpos($file->file_type, 'equifax_report') !== false && $file->bureau_report_type)
                                            <?php echo $file->bureau_report_type; ?>
                                        @else
                                            {!! $file->file_type !!}
                                        @endif
                                    @endif
                                </a>
                                @if($file->bank_name)
                                    <span style="font-weight: 600;font-size: 11px;">({!! $file->bank_name !!})</span>
                                @endif
                                @if($file->password)
                                    <span style="font-weight: 600;font-size: 11px;">[Password - {!! $file->password !!}]</span>
                                @endif
                                @if($file->bureau_report_type && $file->bureau_report_score)
                                    <span style="font-weight: 600;font-size: 11px;">[{!! $file->bureau_report_type !!}/{!! $file->bureau_report_score !!}]</span>
                                @endif
                                <span style="font-weight: 400;font-size: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{!! date('d M, Y H:i:s', strtotime($file->created_at)) !!}
                                    @if(isset($file->user) && isset($file->user->name) && $file->doc_category == 'CKYC')
                                        - CKYC Registry
                                    @elseif(isset($file->user) && isset($file->user->name))
                                        - <?php echo ucfirst($file->user->name); ?>
                                    @endif]
                                                                    </span>
                                @if(\Illuminate\Support\Facades\Session::has('Mask_Aadhar_Card|-32'))
                                    @if(!$file->masked_doc && strpos($file->file_type, 'aadhar_card') !== false && $file->password == '')
                                        <span id="mask_doc" class="btn btn-outline-dark btn-sm mask-address-proof" data-path = "{!! $full_path !!}">Mask Now<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                    @endif
                                @endif
                                {{-- @if(\Illuminate\Support\Facades\Session::has('Mask_Aadhar_Card|-32')) --}}
                                @if(strpos($file->file_type, 'pro_forma_invoice') !== false && $file->show_to_merchant == 0)
                                        <span id="mask_doc" class="btn btn-outline-dark btn-sm show_to_merchant" data-path = "{!! $full_path !!}" data-id="{!! $consumer_applications->id !!}" data-file-id="{!! $file->id !!}">Show to merchant<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                @endif

                                @if($file->file_type == 'electricity_bill'|| ($file->file_type == 'electricity_bill_validation_report' && $consumer_applications->merchant_id == env('SSE_MERCHANT_ID')))
                                        @php
                                            $ebill_name_verify = null;
                                            if (isset($file->ebill_name_verify)) {
                                                // Convert JSON string to PHP object
                                                $ebill_name_verify = json_decode($file->ebill_name_verify);
                                            }
                                        @endphp
                                        @if (isset($ebill_name_verify) && (isset($ebill_name_verify->applicant_match) || isset($ebill_name_verify->co_applicant_match)))
                                        <span class="btn btn-sm" style="border: 2px solid #000000; margin-left: 20px;  color: #343a40; margin-bottom: 5px">
                                            <details class="ebill-details-tag">
                                                <summary style="text-align: left;font-weight: bold;">View Name Comparison</summary>
                                                <p style="text-align: left;">
                                                @if (isset($ebill_name_verify))
                                                    @if (isset($ebill_name_verify->applicant_match))
                                                        Consumer name 
                                                        @if ($ebill_name_verify->applicant_match >= 60)
                                                            <span style="color: green;font-weight: bold;">Matches</span>
                                                        @else
                                                            <span style="color: red;font-weight: bold;">does not match</span>
                                                        @endif
                                                        with Applicant name ({{ $ebill_name_verify->applicant_match }}% match)
                                                        <br>
                                                    @endif

                                                    @if (isset($ebill_name_verify->co_applicant_match))
                                                        Consumer name 
                                                        @if ($ebill_name_verify->co_applicant_match >=60)
                                                            <span style="color: green;font-weight: bold;">Matches</span>
                                                        @else
                                                            <span style="color: red;font-weight: bold;">does not match</span>
                                                        @endif
                                                        with Co-Applicant name ({{ $ebill_name_verify->co_applicant_match }}% match)
                                                        <br>
                                                    @endif
                                                @else
                                                    E-bill validation fail
                                                @endif
                                            </p>
                                            </details>
                                        </span>
                                        @endif
                                @endif

                                @if(strpos($file->file_type, 'pro_forma_invoice') !== false && $file->show_to_merchant == 1)
                                    <span id="mask_doc" class="btn btn-outline-dark btn-sm cancel_from_merchant" data-path = "{!! $full_path !!}" data-id="{!! $consumer_applications->id !!}" data-file-id="{!! $file->id !!}">Cancel from merchant<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                @endif

                                <?php $includeDocs = false; ?>
                                @if($consumer_applications->lender_id == \App\ABFL\Services\Services::$lender_id)
                                    @if(in_array($file->file_type, ['passport_front', 'passport_back', 'votar_id_front', 'votar_id_back', 'driving_license', 'passport_front', 'passport_back', 'aadhar_card', 'aadhar_card_back']))
                                            <?php $includeDocs = true; ?>
                                    @endif
                                @endif
                                @if(((strpos($file->file_type, 'aadhar_card') !== false || strpos($file->file_type, 'pan_card') !== false) && ($consumer_applications->lender_id == \App\ABFL\Services\Services::$lender_id || ($consumer_applications->lender_id == \App\Avanse\Services\AvanseServices::$lender_id ) || ($consumer_applications->lender_id == App\Singularity\Singularity::$lender_id))) || $includeDocs)
                                <!-- 300000 condition here -->
                                    @if((($file->is_masked && strpos($file->file_type, 'aadhar_card') !== false) || !$file->is_masked) || $includeDocs)
                                        <span id="mask_osv" class="btn btn-outline-dark btn-sm mask-kyc-proof" data-id="{!! $consumer_applications->id !!}" data-file-id="{!! $file->id !!}">Mask OSV<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                    @endif
                                @endif
                            </li>
                        @endif
                    @endif
                @elseif(false && isset($file->recording) && $file->recording)
                    <li><i class="fa fa-file-audio-o"></i>
                        <a style="color: black;margin-left: 9px;" href="{!! $file->recording !!}">{!! $file->purpose !!}_{!! $file->created_at !!}
                            @if(isset($file->received_by) && $file->received_by->mobile_number == $file->to)
                                {!! '_applicant' !!}
                            @elseif(isset($file->received_by) && $file->received_by->co_applicant_mobile_number == $file->to)
                                {!! '_co_applicant' !!}
                            @elseif(isset($file->received_by) && isset($consumer_applications->application_element) && ($consumer_applications->application_element->reference_contact_2 == $file->to || $consumer_applications->application_element->reference_contact_1 == $file->to))
                                @if($consumer_applications->application_element->reference_contact_1 == $file->to)
                                    {!! '_reference_1' !!}
                                @else
                                    {!! '_reference_2' !!}
                                @endif
                            @endif
                        </a>
                        <span style="font-weight: 400;font-size: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{!! date('d M, Y H:i:s', strtotime($file->created_at)) !!}  @if(isset($file->picked_by) && isset($file->picked_by->name)) - {!! $file->picked_by->name or '' !!} @endif]</span>
                    </li>
                @endif
                @if((isset($file->purpose) && (empty($file->recording) || empty($file->recording)) && $file->status=='in-progress'))
                    <li><i class="fa fa-file-audio-o"></i><a style="color: black;margin-left: 9px;" href="https://my.exotel.com/auth/login" target="_blank">{!! 'CALL STATUS: In-progress, click to login to Exotel. ' !!}</a></li>
                @endif
                @else
                    <?php $m_generated[] = $file; ?>
                @endif
            @endforeach
        </ul>

        @if(isset($m_generated) && $m_generated)
            <div>
                <div style="margin-left: 38px;">------------------------ Manually Generated Documents (After 2021-04-05) ------------------------</div>
                <ul style="list-style:none;">
                @foreach($m_generated as $file)
                    <!-- Document Generated After 2021-04-05 (AWS Problem) -->
                    @if(isset($file->file_path))
                        @if(strpos($file->file_path, 'res.cloudinary.com/') !== false)
                            <li><i class="fa fa-file-pdf-o"></i><a target="_blank" style="color: black;margin-left: 9px;" href="{!! $file->file_path !!}">@if($file->file_type == 'call_recording') Verification Call @else {!! $file->file_type !!} @endif</a> @if($file->password)<span style="font-weight: 600;font-size: 11px;">[Password - {!! $file->password !!}]</span>@endif</li>
                        @else
                            <?php $full_path = '/admin/consumer-application/get-documents/'; $short_path = isset($file->file_path) && !empty($file->file_path) ? $file->file_path : $consumer_applications->id.'/'.$file->file_type.'.pdf';
                            $full_path .= $short_path;
                            $full_path = str_replace('//','/',$full_path);
                            $name_file_type_v = strpos($file->file_type, 'bounce') !== false ? 'bounce' : (strpos($file->file_type, 'penal') !== false ? 'penal' : (strpos($file->file_type, '_validation_report') !== false ? 'utility_validation_report' : $file->file_type));
                            ?>
                            @if(!$file->masked_doc || ($file->masked_doc || $file->file_type != 'aadhar_card'))
                                <li @if(isset($file->is_latest)) style="color:red;" @endif>
                                    @if($deleteDocument && !in_array($name_file_type_v, $systemDocuments))<i style="cursor: pointer;" class="document-trash-del fa fa-trash" data-id="{!! $file->id !!}"></i>@endif
                                    @if(!$file->accountUID && strpos($file->file_type, 'bank_statement') !== false)
                                        <a @if($file->bank_name) href="/admin/consumer-application/download-report-finbit/{!! $file->id !!}"
                                    @else 
                                        data-link="/admin/consumer-application/download-report-finbit/{!! $file->id !!}" href="javascript:void(0);" class="show_bank_popup show_bank_popup_pro_{!! $file->id !!}"
                                    @endif 
                                    data-id="{!! $file->id !!}" style="text-decoration: none;"><i class="fa fa-download" title="Download FinBit Report"></i></a> &nbsp;
                                        @if($file->finbit_analysis_date)
                                            <i type="button" class="fa fa-exclamation-triangle" onclick="$(this).popover({placement: 'left'});" style="color:red;" data-toggle="popover" title="Finbit Analysis Failed" data-content="<?php echo date('d M, Y H:i:s', strtotime($file->finbit_analysis_date)) ?> ({!! $file->bank_name !!}) - {!! $file->statementtype !!}, {!! $file->statemenfilettype !!}"></i>
                                        @endif
                                    @endif
                                    @if(!isset($file->UtilityValidation->id) && $file->customer_id && $file->provider && (strpos($file->file_type, 'electricity_bill') !== false || strpos($file->file_type, 'gas_bill') !== false))
                                        <i style="cursor: pointer;" data-id="{!! $file->id !!}" class="validation-utility-bill fa fa-download" title="Validate Bill"></i>
                                    @elseif(isset($file->UtilityValidation->id))
                                        <i style="color:green;" class="fa fa-check-circle"></i>
                                    @endif
                                    <i class="fa fa-file-pdf-o"></i>
                                    <a target="_blank" style="cursor:pointer;color: black;margin-left: 9px; @if(isset($file->is_latest)) color:red; @endif"
                                       @if(0 < count(array_intersect(array_map('strtolower', explode('.', $full_path)), ['jpeg','png','gif', 'pdf'])) && strpos($full_path, 'recording') == false)
                                       data-link="{!! $full_path !!}" class="show-object-view-init" data-name="{!!$file->file_type!!}"
                                       @else
                                       href="{!! $full_path !!}" data-name="{!!$file->file_type!!}"
                                            @endif>
                                        @if($file->file_type == 'call_recording')
                                            Verification Call
                                        @elseif($file->file_type && strpos($file->file_type, 'pro_forma_invoice') !== false && (empty($file->created_by ) || ($file->created_by) == 107 ))
                                            Disbursement Advice
                                        @elseif($file->file_type && strpos($file->file_type, 'pro_forma_invoice') !== false)
                                            Merchant Email confirmation/Signed DA
                                        @elseif($file->file_type && strpos($file->file_type, 'proforma') !== false)
                                            Final quotation/Final Bill
                                        @else
                                            {!! $file->file_type !!}
                                        @endif
                                    </a>
                                    @if($file->bank_name)
                                        <span style="font-weight: 600;font-size: 11px;">({!! $file->bank_name !!})</span>
                                    @endif
                                    @if($file->password)
                                        <span style="font-weight: 600;font-size: 11px;">[Password - {!! $file->password !!}]</span>
                                    @endif
                                    <span style="font-weight: 400;font-size: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{!! date('d M, Y H:i:s', strtotime($file->created_at)) !!}
                                        @if(isset($file->user) && isset($file->user->name))
                                            - {!! $file->user->name or '' !!}
                                        @endif]
                                                                    </span>
                                    @if(\Illuminate\Support\Facades\Session::has('Mask_Aadhar_Card|-32'))
                                        @if(!$file->masked_doc && strpos($file->file_type, 'aadhar_card') !== false && $file->password == '')
                                            <span id="mask_doc" class="btn btn-outline-dark btn-sm mask-address-proof" data-path = "{!! $full_path !!}">Mask Now<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                        @endif
                                    @endif
                                                                    {{-- @if(\Illuminate\Support\Facades\Session::has('Mask_Aadhar_Card|-32')) --}}
                                    @if(strpos($file->file_type, 'pro_forma_invoice') !== false && $file->show_to_merchant == 0)
                                        <span id="mask_doc" class="btn btn-outline-dark btn-sm show_to_merchant" data-path = "{!! $full_path !!}">Show to merchant<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                    @endif

                                    @if(strpos($file->file_type, 'pro_forma_invoice') !== false && $file->show_to_merchant == 1)
                                        <span id="mask_doc" class="btn btn-outline-dark btn-sm cancel_from_merchant" data-path = "{!! $full_path !!}">Cancel from merchant<span class="loading_icon_c"><img src="/assets/front/img/loading.gif" style="position: absolute;margin-top: -25px;margin-left: 196px;display: none;padding-left: 17px;"></span></span>
                                    @endif

                                </li>
                            @endif
                        @endif
                    @elseif(isset($file->recording) && $file->recording)
                        <li><i class="fa fa-file-audio-o"></i>
                            <a style="color: black;margin-left: 9px;" href="{!! $file->recording !!}">{!! $file->purpose !!}_{!! $file->created_at !!}
                                @if(isset($file->received_by) && $file->received_by->mobile_number == $file->to)
                                    {!! '_applicant' !!}
                                @elseif(isset($file->received_by) && $file->received_by->co_applicant_mobile_number == $file->to)
                                    {!! '_co_applicant' !!}
                                @elseif(isset($file->received_by) && isset($consumer_applications->application_element) && ($consumer_applications->application_element->reference_contact_2 == $file->to || $consumer_applications->application_element->reference_contact_1 == $file->to))
                                    @if($consumer_applications->application_element->reference_contact_1 == $file->to)
                                        {!! '_reference_1' !!}
                                    @else
                                        {!! '_reference_2' !!}
                                    @endif
                                @endif
                            </a>
                            <span style="font-weight: 400;font-size: 10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[{!! date('d M, Y H:i:s', strtotime($file->created_at)) !!}  @if(isset($file->picked_by) && isset($file->picked_by->name)) - {!! $file->picked_by->name or '' !!} @endif]</span>
                        </li>
                    @endif

                    <!-- END -->
                @endforeach
                </ul>
            </div>
        @endif
    @endif
</div>