2018-05-12 04:46:05 -04:00
|
|
|
<form action="{{ baseUrl("/settings/users/{$currentUser->id}/switch-book-view") }}" method="POST" class="inline">
|
|
|
|
{!! csrf_field() !!}
|
|
|
|
{!! method_field('PATCH') !!}
|
2018-08-27 09:18:09 -04:00
|
|
|
<input type="hidden" value="{{ $booksViewType === 'list'? 'grid' : 'list' }}" name="view_type">
|
2018-05-12 04:46:05 -04:00
|
|
|
@if ($booksViewType === 'list')
|
|
|
|
<button type="submit" class="text-pos text-button">@icon('grid'){{ trans('common.grid_view') }}</button>
|
|
|
|
@else
|
|
|
|
<button type="submit" class="text-pos text-button">@icon('list'){{ trans('common.list_view') }}</button>
|
|
|
|
@endif
|
|
|
|
</form>
|