All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
78 lines
2.1 KiB
PHP
78 lines
2.1 KiB
PHP
{{-- @if ($getState())
|
|
<div class="p-4 text-center">
|
|
<img src="{{ $getState() }}"
|
|
onerror="this.onerror=null; this.src='{{ asset('images/not-found.png') }}'"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 400px; height: 400px; object-fit: contain;" />
|
|
</div>
|
|
@else
|
|
<div class="p-4 text-center">
|
|
<img src="{{ asset('images/not-found.png') }}"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 400px; height: 400px; object-fit: contain;" />
|
|
</div>
|
|
@endif --}}
|
|
|
|
{{-- @if ($getState())
|
|
<div class="p-4 text-center">
|
|
<img src="{{ $getState() }}?v={{ time() }}"
|
|
onerror="this.onerror=null; this.src='{{ asset('images/not-found.png') }}'"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 200px; height: 200px; object-fit: contain;" />
|
|
</div>
|
|
@else
|
|
<div class="p-4 text-center">
|
|
<img src="{{ asset('images/not-found.png') }}"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 200px; height: 200px; object-fit: contain;" />
|
|
</div>
|
|
@endif --}}
|
|
|
|
@if ($getState())
|
|
|
|
@php
|
|
$url = $getState() . '?v=' . time();
|
|
|
|
$extension = strtolower(
|
|
pathinfo(parse_url($getState(), PHP_URL_PATH), PATHINFO_EXTENSION)
|
|
);
|
|
@endphp
|
|
|
|
<div class="p-4 text-center">
|
|
|
|
@if ($extension === 'pdf')
|
|
|
|
<iframe
|
|
src="{{ $url }}"
|
|
width="100%"
|
|
height="400px"
|
|
style="border: 1px solid #ddd; border-radius: 8px;">
|
|
</iframe>
|
|
|
|
@else
|
|
|
|
<img
|
|
src="{{ $url }}"
|
|
onerror="this.onerror=null; this.src='{{ asset('images/not-found.png') }}'"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 200px; height: 200px; object-fit: contain;"
|
|
/>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<div class="p-4 text-center">
|
|
<img
|
|
src="{{ asset('images/not-found.png') }}"
|
|
class="rounded shadow mx-auto"
|
|
style="width: 200px; height: 200px; object-fit: contain;"
|
|
/>
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|