Fix Admin Download Buttons
This commit is contained in:
@@ -52,7 +52,19 @@
|
||||
<br>
|
||||
@php $download = $episode->getDownloadByType('UHD'); @endphp
|
||||
@isset($download)
|
||||
@if (!Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER))
|
||||
@if (Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER) || Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR))
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-green-400"></i> 4k
|
||||
</p>
|
||||
|
||||
@php $dlpdomains = config('hstream.download_domain_4k'); @endphp
|
||||
|
||||
<div class="flex flex-wrap justify-around">
|
||||
@foreach ($dlList as $hdl)
|
||||
@include('modals.partials.download-button-patreon')
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@if (config('hstream.free_downloads'))
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-yellow-600"></i> 4k
|
||||
@@ -67,18 +79,6 @@
|
||||
on our Discord server, you have to logout and login again.
|
||||
</p>
|
||||
@endif
|
||||
@else
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-green-400"></i> 4k
|
||||
</p>
|
||||
|
||||
@php $dlpdomains = config('hstream.download_domain_4k'); @endphp
|
||||
|
||||
<div class="flex flex-wrap justify-around">
|
||||
@foreach ($dlList as $hdl)
|
||||
@include('modals.partials.download-button-patreon')
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@else
|
||||
<p class="text-gray-800 dark:text-gray-200 font-bold">
|
||||
@@ -91,7 +91,19 @@
|
||||
|
||||
<br>
|
||||
@if ($episode->interpolated_uhd)
|
||||
@if (!Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER))
|
||||
@if (Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER) || Auth::user()->hasRole(\App\Enums\UserRole::ADMINISTRATOR) )
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-green-400"></i> 4k 48fps
|
||||
</p>
|
||||
|
||||
@php $dlpdomains = config('hstream.download_domain_4k'); @endphp
|
||||
|
||||
<div class="flex flex-wrap justify-around">
|
||||
@foreach ($dlList as $hdl)
|
||||
@include('modals.partials.download-button-patreon-interpolated')
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
@if (config('hstream.free_downloads'))
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-yellow-600"></i> 4k 48fps
|
||||
@@ -106,18 +118,6 @@
|
||||
on our Discord server, you have to logout and login again.
|
||||
</p>
|
||||
@endif
|
||||
@else
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-green-400"></i> 4k 48fps
|
||||
</p>
|
||||
|
||||
@php $dlpdomains = config('hstream.download_domain_4k'); @endphp
|
||||
|
||||
<div class="flex flex-wrap justify-around">
|
||||
@foreach ($dlList as $hdl)
|
||||
@include('modals.partials.download-button-patreon-interpolated')
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user