Fix Admin Download Buttons
This commit is contained in:
@@ -52,7 +52,19 @@
|
|||||||
<br>
|
<br>
|
||||||
@php $download = $episode->getDownloadByType('UHD'); @endphp
|
@php $download = $episode->getDownloadByType('UHD'); @endphp
|
||||||
@isset($download)
|
@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'))
|
@if (config('hstream.free_downloads'))
|
||||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
<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
|
<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.
|
on our Discord server, you have to logout and login again.
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@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
|
@endif
|
||||||
@else
|
@else
|
||||||
<p class="text-gray-800 dark:text-gray-200 font-bold">
|
<p class="text-gray-800 dark:text-gray-200 font-bold">
|
||||||
@@ -91,7 +91,19 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
@if ($episode->interpolated_uhd)
|
@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'))
|
@if (config('hstream.free_downloads'))
|
||||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
<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
|
<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.
|
on our Discord server, you have to logout and login again.
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@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
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user