{{-- CityHub - Communal Service - Edit report --}}
{{ Form::button(' ' . Lang::get('communalService.modal_report_send_email_button'), array('type' => 'button', 'class' => 'btn btn-success sendEmailButton pull-right mt-7', 'data-id' => $report->id, 'title' => Lang::get('communalService.send_email'), 'data-toggle' => 'modal', 'data-target' => '#sendMailModal',)) }} {{ Lang::get('communalService.generate_pdf') }}

{{ $title or null }}

@if ($report->attach_image != null || $report->attach_image != '')
{{ HTML::image(URL::to('/') . '/uploads/communalService/thumbs/' . $report->attach_image, 'a picture', array('class' => 'img-max img-border img-responsive')) }}
@endif
{{ Form::open(array('route' => 'CommunalServicePostEditReport', 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'files' => true )) }} {{ Form::hidden('id', $report->id, array('id' => 'id')) }} {{ Form::hidden('reportLatitude', $report->latitude, array('id' => 'reportLatitude')) }} {{ Form::hidden('reportLongitude', $report->longitude, array('id' => 'reportLongitude')) }} @if (!is_null($reportCity)) {{ Form::hidden('coordinates', $reportCity->coordinates, array('id' => 'coordinates')) }} @endif
@if ($report->location_address != null || $report->location_address != '')

{{ $report->location_address }}

@endif
{{ Form::select('active', array(true => Lang::get('core.active'), false => Lang::get('core.inactive')), isset($report->is_active) ? $report->is_active : null, array('id' => 'active', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('active') != '' || $errors->first('active') != null))

{{ $errors->first('active') }}

@endif
{{ Form::select('city', $cities, isset($reportCity->city_id) ? $reportCity->city_id : null, array('id' => 'city', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('city') != '' || $errors->first('city') != null))

{{ $errors->first('city') }}

@endif
{{-- Type --}}
{{ Form::select('type', $types, isset($report->type_id) ? $report->type_id : null, array('id' => 'type', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('type') != '' || $errors->first('type') != null))

{{ $errors->first('type') }}

@endif
{{-- Subtype --}}
{{ Form::select('subtype', $subtypes, isset($report->subtype_id) ? $report->subtype_id : null, array('id' => 'subtype', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('subtype') != '' || $errors->first('subtype') != null))

{{ $errors->first('subtype') }}

@endif
{{ Form::select('status', $statuses, isset($report->status_id) ? $report->status_id : null, array('id' => 'status', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('status') != '' || $errors->first('status') != null))

{{ $errors->first('status') }}

@endif
{{ Form::select('priority', $priorities, isset($report->priority_id) ? $report->priority_id : null, array('id' => 'priority', 'class' => 'form-control', 'required')) }} @if (isset($errors) && ($errors->first('priority') != '' || $errors->first('priority') != null))

{{ $errors->first('priority') }}

@endif
{{ Form::textarea('description', isset($report->description) ? $report->description : null, array('id' => 'description', 'class' => 'form-control', 'size' => '50x6')) }} @if (isset($errors) && ($errors->first('description') != '' || $errors->first('description') != null))

{{ $errors->first('description') }}

@endif
{{ Form::textarea('admin_note', isset($report->admin_note) ? $report->admin_note : null, array('id' => 'admin_note', 'class' => 'form-control', 'size' => '50x6')) }} @if (isset($errors) && ($errors->first('admin_note') != '' || $errors->first('admin_note') != null))

{{ $errors->first('admin_note') }}

@endif
{{ Form::file('attach_image', array('class' => 'form-control')) }} @if (isset($errors) && ($errors->first('attach_image') != '' || $errors->first('attach_image') != null))

{{ $errors->first('attach_image') }}

@endif
{{ Form::text('votes', isset($report->votes) ? $report->votes : null, array('id' => 'votes', 'class' => 'form-control')) }} @if (isset($errors) && ($errors->first('votes') != '' || $errors->first('votes') != null))

{{ $errors->first('votes') }}

@endif
{{ Lang::get('core.cancel') }} hehe{{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }}
{{ Form::close() }}

{{Lang::get('communalService.report_history')}} #{{ $report->id }}


@if(!empty($tracking)) @foreach($tracking as $track)
{{ Lang::get('touristInformation.header_id') }} {{ Lang::get('usersList.header_name') }} {{ Lang::get('communalService.header_action') }} {{ Lang::get('communalService.header_date_time') }}
{{ $track->id }} {{ $track->first_name.' '.$track->last_name}} @if($track->action == 'delegated') @endif @if($track->action == 'edited')