2018-12-01 21:28:17 +01:00
|
|
|
<div>
|
2021-01-17 14:41:43 +01:00
|
|
|
<form action="{{ url("/settings/users/". user()->id ."/switch-${type}-view") }}" method="POST" class="inline">
|
2018-12-01 21:28:17 +01:00
|
|
|
{!! csrf_field() !!}
|
|
|
|
{!! method_field('PATCH') !!}
|
2018-12-07 19:33:32 +01:00
|
|
|
<input type="hidden" value="{{ $view === 'list'? 'grid' : 'list' }}" name="view_type">
|
|
|
|
@if ($view === 'list')
|
2019-02-16 16:05:18 +01:00
|
|
|
<button type="submit" class="icon-list-item text-primary">
|
2018-12-01 21:28:17 +01:00
|
|
|
<span class="icon">@icon('grid')</span>
|
|
|
|
<span>{{ trans('common.grid_view') }}</span>
|
2019-02-16 16:05:18 +01:00
|
|
|
</button>
|
2018-12-01 21:28:17 +01:00
|
|
|
@else
|
2019-02-16 16:05:18 +01:00
|
|
|
<button type="submit" class="icon-list-item text-primary">
|
|
|
|
<span>@icon('list')</span>
|
2018-12-01 21:28:17 +01:00
|
|
|
<span>{{ trans('common.list_view') }}</span>
|
2019-02-16 16:05:18 +01:00
|
|
|
</button>
|
2018-12-01 21:28:17 +01:00
|
|
|
@endif
|
|
|
|
</form>
|
|
|
|
</div>
|