@extends('layout.mainlayout') @section('content')
@component('components.breadcrumb') @slot('title') View Other Policy @endslot @endcomponent @if(session('success'))
{{ session('success') }}
@endif

Other Policy Document Preview

@if(isset($document) && $document->other_policy_doc) @php $extension = pathinfo($document->other_policy_doc, PATHINFO_EXTENSION); $fileUrl = asset('storage/' . $document->other_policy_doc); @endphp
@if(in_array($extension, ['pdf']))
@elseif(in_array($extension, ['jpg', 'jpeg', 'png', 'gif'])) Other Policy @else

Unsupported file type: {{ $extension }}

@endif
@else

No Document has been uploaded yet.

@endif
@endsection