@extends('layouts.app') @section('breadcrumb') @stop @section('css') @stop @section('content')
@if (defaultRole())

{!! trans('messages.create') !!} {!! trans('messages.transaction') !!}

{!! Form::open(['route'=>'transaction.create', 'role'=>'form', 'class'=>'transaction-create-form', 'id'=>'transaction-create-form']) !!} @include('tour.transaction_create') {!! Form::close() !!}

{!! trans('messages.bulk_upload') !!} {!! trans('messages.guard_tour') !!}

@include('tour._form_bulk_upload')
@endif

{!! trans('messages.bulk').' '.trans('messages.download') !!} {!! trans('messages.transaction') !!}

{!! Form::open(['route'=>'summary.download', 'role'=>'form', 'class'=>'report-transaction-form', 'id'=>'report-transaction-form', 'data-submit'=>'noAjax']) !!} @include('tour.transaction_form') {!! Form::close() !!}

{!! trans('messages.filter') !!} {!! trans('messages.transaction') !!}

{!! Form::open(['url' => 'filter','id' => 'report-transaction-filter-form','data-no-form-clear' => 1]) !!}
{{trans('messages.to')}}
@if (!isClientRole())
{!! Form::label('user',trans('messages.patrolling').' '.trans('messages.officer'),[]) !!} {!! Form::select('users[]',$users,'',['class'=>'form-control show-tick','title'=>trans('messages.select').' '.trans('messages.patrolling').' '.trans('messages.officer'),'multiple'=>'multiple','data-actions-box'=>'true']) !!}
@endif
{!! Form::label('locations',trans('messages.location'),[]) !!} {!! Form::select('locations[]',$locations,'',['class'=>'form-control show-tick','title'=>trans('messages.select').' '.trans('messages.location'),'multiple'=>'multiple','data-actions-box'=>'true']) !!}
{!! Form::label('progress',trans('messages.progress'),[]) !!} {!! Form::select('progress',[0 =>'Disrupted',1=>'Completed',2=>'In progress'],'',['class'=>'form-control show-tick','title'=>trans('messages.select').' '.trans('messages.progress'),'data-actions-box'=>'true']) !!}
{!! Form::close() !!}

{!! trans('messages.generate') !!} {!! trans('messages.transaction').' '.trans('messages.report') !!}

@include('global.datatable',['table' => $table_data['report-transaction-table']])
Legend:
In progress Officer still on patrol
Completed Route has been completed with all checkpoints scanned
Completed Route has been completed with some skipped points
Disrupted Patrolling was disrupted
@stop