+ @if(Auth::check())
+ @include('widgets._item_block', ['item' => $user])
+ @endif
diff --git a/resources/views/widgets/_item_block.blade.php b/resources/views/widgets/_item_block.blade.php
new file mode 100644
index 0000000000..c4e1aa4118
--- /dev/null
+++ b/resources/views/widgets/_item_block.blade.php
@@ -0,0 +1,7 @@
+ {!! Form::open(['url' => 'account/image-blocks/block/' . $item->id]) !!}
+ @php
+ $model = get_class($item);
+ @endphp
+
+ {!! Form::submit(checkItemBlock($item, Auth::user()) ? 'Unblock' : 'Block', ['class' => 'btn btn-success btn-sm '.(isset($float) && $float ? 'float-right' : '')]) !!}
+ {!! Form::close() !!}
diff --git a/resources/views/world/_currency_entry.blade.php b/resources/views/world/_currency_entry.blade.php
index b15b0e2c64..7a860b6e3d 100644
--- a/resources/views/world/_currency_entry.blade.php
+++ b/resources/views/world/_currency_entry.blade.php
@@ -8,6 +8,9 @@
{{ $currency->name }} @if ($currency->abbreviation)
({{ $currency->abbreviation }})
@endif
+ @if(Auth::check())
+ @include('widgets._item_block', ['item' => $currency, 'float' => true])
+ @endif
Displays as: {!! $currency->display(0) !!}
Held by: is_user_owned ? ['users'] : []) + ($currency->is_character_owned ? ['characters'] : []))); ?>
diff --git a/resources/views/world/_feature_entry.blade.php b/resources/views/world/_feature_entry.blade.php
index 71eee4909a..db2a436bd5 100644
--- a/resources/views/world/_feature_entry.blade.php
+++ b/resources/views/world/_feature_entry.blade.php
@@ -16,6 +16,9 @@
+ @if(Auth::check())
+ @include('widgets._item_block', ['item' => $feature, 'float' => true])
+ @endif
@if ($feature->feature_category_id)
diff --git a/resources/views/world/_item_entry.blade.php b/resources/views/world/_item_entry.blade.php
index 62fcde7ca5..14ab849694 100644
--- a/resources/views/world/_item_entry.blade.php
+++ b/resources/views/world/_item_entry.blade.php
@@ -14,6 +14,9 @@
@endif
+ @if(Auth::check())
+ @include('widgets._item_block', ['item' => $item, 'float' => true])
+ @endif
@if (isset($item->category) && $item->category)
diff --git a/routes/lorekeeper/members.php b/routes/lorekeeper/members.php
index a64ebf7ec6..58f03c468e 100644
--- a/routes/lorekeeper/members.php
+++ b/routes/lorekeeper/members.php
@@ -52,6 +52,8 @@
Route::post('bookmarks/edit/{id}', 'BookmarkController@postCreateEditBookmark');
Route::get('bookmarks/delete/{id}', 'BookmarkController@getDeleteBookmark');
Route::post('bookmarks/delete/{id}', 'BookmarkController@postDeleteBookmark');
+
+ Route::post('image-blocks/block/{id}', 'AccountController@postBlockUnblockImage');
});
Route::group(['prefix' => 'inventory', 'namespace' => 'Users'], function () {