mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
update bindle page
This commit is contained in:
@@ -158,7 +158,7 @@ class LibraryItemForm extends Component
|
|||||||
)
|
)
|
||||||
->toArray();
|
->toArray();
|
||||||
$libaries = Library::query()
|
$libaries = Library::query()
|
||||||
->when(auth()->id() !== config('portal.bonus.fiat-tracker-user-id'),
|
->when(auth()->id() != config('portal.bonus.fiat-tracker-user-id'),
|
||||||
fn($query) => $query->where('name', '!=', 'Bindle')
|
fn($query) => $query->where('name', '!=', 'Bindle')
|
||||||
)
|
)
|
||||||
->get()
|
->get()
|
||||||
@@ -168,7 +168,7 @@ class LibraryItemForm extends Component
|
|||||||
])
|
])
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
if (auth()->id() === config('portal.bonus.fiat-tracker-user-id')) {
|
if (auth()->id() == config('portal.bonus.fiat-tracker-user-id')) {
|
||||||
$types = collect($types)->prepend([
|
$types = collect($types)->prepend([
|
||||||
'label' => 'Bindle',
|
'label' => 'Bindle',
|
||||||
'value' => 'bindle',
|
'value' => 'bindle',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="py-6">
|
<div class="py-6">
|
||||||
@if(auth()->id() === config('portal.bonus.fiat-tracker-user-id'))
|
@if(auth()->id() == config('portal.bonus.fiat-tracker-user-id'))
|
||||||
<x-button icon="plus"
|
<x-button icon="plus"
|
||||||
:href="route('library.libraryItem.form', ['country' => 'de'])">
|
:href="route('library.libraryItem.form', ['country' => 'de'])">
|
||||||
{{ __('Neues Bindle hochladen') }}
|
{{ __('Neues Bindle hochladen') }}
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-sm font-medium text-gray-100 py-4">
|
<div class="text-sm font-medium text-gray-100 py-4">
|
||||||
@if(auth()->id() === config('portal.bonus.fiat-tracker-user-id'))
|
@if(auth()->id() == config('portal.bonus.fiat-tracker-user-id'))
|
||||||
<x-button
|
<x-button
|
||||||
negative
|
negative
|
||||||
xs
|
xs
|
||||||
|
|||||||
Reference in New Issue
Block a user