How to view any kind of document file in my view in laravel
<p>If i want to view pdf, docx, doc, zip rar and others document in same view page. what should i do?</p>

<p>description:
If user upload a pdf file its need to show pdf and if user upload a doc file its need to show doc.
any solution please.</p>

<p>My view</p>

<pre><code>@if($status-&gt;type == 1)
      &lt;a href="{{ $status-&gt;image_url }}"&gt;&lt;/a&gt;
         &lt;img src="{{asset('status_images/'.$status-&gt;image_url)}}" class="img-responsive" style="width:100%;"&gt;

     @endif
</code></pre>