@extends('Frontend.Layouts.modal') @section('modal_class', 'modal-lg') @section('title') {!!trans('front.tasks')!!} @stop @section('body')
{!!Form::open(['route' => 'tasks.store', 'method' => 'POST'])!!} {!!Form::hidden('id')!!}
{!!Form::label('device_id', trans('validation.attributes.device_id').':')!!} {!!Form::select('device_id', ['0' => '-- '.trans('admin.select').' --'] + $devices, null, ['class' => 'form-control', 'data-live-search' => true])!!}
{!!Form::label('invoice_number', trans('validation.attributes.invoice_number').':')!!} {!!Form::text('invoice_number', null, ['class' => 'form-control'])!!}
{!!Form::label('title', trans('validation.attributes.title').':')!!} {!!Form::text('title', null, ['class' => 'form-control'])!!}
{!!Form::label('priority', trans('validation.attributes.priority').':')!!} {!!Form::select('priority', $priorities, null, ['class' => 'form-control'])!!}

{!! Form::label('pickup_address', trans('validation.attributes.pickup_address').':')!!} {!! Form::hidden('pickup_address_id') !!} {!! Form::hidden('pickup_address_lat') !!} {!! Form::hidden('pickup_address_lng') !!} @include('Frontend.Addresses.partials.map_button', [ 'type' => 'pickup', 'parent' => '#new_task', 'address' => '', 'lat' => '', 'lng' => '', ] )
{!! Form::label('pickup_time_from', trans('global.from'))!!}
{!! Form::label('pickup_time_to', trans('global.to'))!!}
{!! Form::label('delivery_address', trans('validation.attributes.delivery_address').':')!!} {!! Form::hidden('delivery_address_id') !!} {!! Form::hidden('delivery_address_lat') !!} {!! Form::hidden('delivery_address_lng') !!} @include('Frontend.Addresses.partials.map_button', [ 'type' => 'delivery', 'parent' => '#new_task', 'address' => '', 'lat' => '', 'lng' => '', ] )

{!!Form::label('comment', trans('front.comment').':')!!} {!!Form::textarea('comment', null, ['class' => 'form-control'])!!}
{!!Form::label('search_device_id', trans('validation.attributes.device_id').':')!!} {!!Form::select('search_device_id', ['0' => '-- '.trans('admin.select').' --'] + $devices, null, ['class' => 'form-control', 'data-live-search' => true, 'data-filter' => true])!!}
{!!Form::label('search_task_status', trans('validation.attributes.status').':')!!} {!!Form::select('search_task_status', ['0' => '-- '.trans('admin.select').' --'] + $statuses, null, ['class' => 'form-control', 'data-filter' => true])!!}
{!!Form::label('search_time_from', trans('global.from').':')!!} {!!Form::text('search_time_from', null, ['class' => 'datetimepicker form-control', 'id' => 'search_time_from', 'data-filter' => true])!!}
{!!Form::label('search_time_to', trans('global.to').':')!!} {!!Form::text('search_time_to', null, ['class' => 'datetimepicker form-control', 'id' => 'search_time_to', 'data-filter' => true])!!}
{!!Form::label('search_invoice_number', trans('validation.attributes.invoice_number').':')!!} {!!Form::text('search_invoice_number', null, ['class' => 'form-control'])!!}
@include('Frontend.Tasks.list')
{!!Form::close()!!}
@stop @section('buttons') @stop