@extends('backend-template') @section('content')

Filter

{!! Form::open(array('url' => route('moderation'), 'class' => 'dialog-form', 'method' => 'get', 'autocomplete' => 'off')) !!}
{!! Form::text('id',Request::input('id'), ['class' => 'form-control']) !!}
{!! Form::text('old_id',Request::input('old_id'), ['class' => 'form-control']) !!}
{!! Form::text('name', Request::input('name'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::text('description', Request::input('description'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::select('ad_category', [ "" => "All", 'salvo-directory' => "Salvo Directory", 'antique-reclaimed' => "Antique & Reclaimed", 'recraft-upcycled' => "Recraft & Upcycled (recraft)", 'wanted'=>"Wanted", 'stolen'=>"Stolen", 'news'=>"News", 'dismantling-demolition'=>"Dismantling & Demolition", 'new-replica-reproduction'=>"New, Replica or reproduction (new & repro)", 'shop'=>"Shop", ], Request::input('ad_category'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::select('mod_status', [ "" => "All", 'none' => "Inbox", 'sort_out' => "SortOut", 'archive' => "Archive", ], Request::input('mod_status'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::select('item_status', [ "" => "All", 'live' => "Live", 'archived' => "Archived", 'pending' => "Pending", 'deleted' => "Deleted", 'reserved' => "Reserved", ], Request::input('item_status'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::text('firstname', Request::input('firstname'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::text('lastname', Request::input('lastname'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::text('business_name', Request::input('business_name'), ['class' => 'form-control']) !!}
{{-- end form-group --}}
{!! Form::close() !!}

Items

{{-- operations with selected items --}} {!! Form::open(array('url' => url('/admin/moderation/mod_items'), 'class' => 'form-horizontal dialog-form', 'autocomplete' => 'off')) !!}
{!! Form::select('item_action', ['' => 'Do nothing', 'mod_archive' => "Mark Moderated (Move to 'archive' / notes update)", 'mod_sort_out' => "Move to 'Sortout' (Notes update)", 'mod_none' => 'Unmark Moderated', 'pending' => 'Set item status pending', 'archive' => 'Set item status archive', 'unreserved' => 'Set item status unreserved'], 0, ['id' => 'item_action_top', 'class' => 'form-control', 'onchange' => 'document.getElementById("item_action_bottom").value = this.value']) !!}
{!! Form::checkbox('item_send_subscription', null, true, ['id' => 'item_send_subscription_top', 'onchange' => 'document.getElementById("item_send_subscription_bottom").checked = this.checked']) !!}
{{-- end form-group --}} {!! $items->appends(Request::only('search'))->render() !!}
@if(count($items))
@foreach($items as $item)
@include('admin.main._item_card_wide')
@endforeach
{!! Form::select('item_action', ['' => 'Do nothing', 'mod_archive' => "Mark Moderated (Move to 'archive' / notes update)", 'mod_sort_out' => "Move to 'Sortout' (Notes update)", 'mod_none' => 'Unmark Moderated', 'pending' => 'Set item status pending', 'archive' => 'Set item status archive', 'unreserved' => 'Set item status unreserved'], 0, ['id' => 'item_action_bottom', 'class' => 'form-control', 'onchange' => 'document.getElementById("item_action_top").value = this.value']) !!}
{!! Form::checkbox('item_send_subscription', null, true, ['id' => 'item_send_subscription_bottom', 'onchange' => 'document.getElementById("item_send_subscription_top").checked = this.checked']) !!}
{!! Form::close() !!} {!! $items->appends(Request::only('search'))->render() !!}
@else

No items were found

@endif
@stop @section('js_functions') my_main.show_message_form(true); main.prototype.select_all_checkboxes(); @stop