@extends('layouts.app') @section('title') All Brands @endsection @section('content')
S.No. | Required Document | Document Specifications | Upload | View |
---|---|---|---|---|
{{ $i++ }} | {{ $document['DocumentName'] }} * | Document Format:{{ strtoupper($document['DocumentType']) }} Min Size(KB):{{ $document['DocumentMinSize'] / 1024 }} Max Size(KB):{{ $document['DocumentMaxSize'] / 1024 }} |
@php
$ext = explode(',', $document['DocumentType']);
if (isset($document['UploadDocument'])) {
// $filepath = @Auth::user()->ApplicationNumber . '/' . $document['UploadDocument'];
$filepath = $document['UploadDocument'];
// $fileUrl = asset('uploads/' . $filepath);
// $fileUrl = env('documentPathAPI').$filepath;
$fileUrl = @Config::get('constants.documentPathAPI').$filepath;
$fileName = base64_encode($document['UploadDocument']);
$imagePath = $fileUrl;
$imageData = @base64_encode(file_get_contents($fileUrl));
// $imageData = base64_encode($fileUrl);
$imageType = pathinfo($imagePath, PATHINFO_EXTENSION);
$imageSrc = 'data:image/' . $imageType . ';base64,' . $imageData;
}
@endphp
@if ((in_array('jpg', $ext) || in_array('jpeg', $ext)) && isset($document['UploadDocument']) && !empty($document['UploadDocument']))
|