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

Posh Policy Document Preview

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

Unsupported file type: {{ $extension }}

@endif
@else

No Posh Policy uploaded yet.

@endif
@endsection