@php $document_type_id = session()->get('multiple_upload_img.document_type'); $pages = session()->get('multiple_upload_img.pages'); $user_id = $user_id; @endphp @foreach($pages as $key => $value) @php $file_path = 'app/public/user-documents'.DS.$user_id.DS.'tmp_merge'.$document_type_id.DS.$value; $base_file_path = storage_path($file_path); $mime = getimagesize($base_file_path); $image_type = $mime['mime']; $blob = base64_encode(file_get_contents($base_file_path)); @endphp @if($value != end($pages))
@endif @endforeach