{{-- CityHub - Communal Service - Manage report (manager) --}}
{{ Lang::get('communalService.generate_pdf') }} {{ Form::open(array('route' => 'CommunalServicePostUndelegateReport', 'role' => 'form', 'class' => 'form-horizontal pull-right mr10', 'autocomplete' => 'off', 'files' => true )) }}
{{ Form::hidden('id', $report->id) }} {{ Form::hidden('company', $company->company_id) }} {{ Form::hidden('company_name', $company->name) }} {{ Form::button(' ' . Lang::get('communalService.link_undelegate', array('company' => $company->name)), array('type' => 'submit', 'class' => 'btn btn-warning')) }}
{{ Form::close() }}

{{ $title or null }}

@if ($report->attach_image != null || $report->attach_image != '')
@endif
{{ Form::open(array('route' => 'CommunalServicePostManageReport', 'role' => 'form', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'files' => true )) }} {{ Form::hidden('id', $report->id, array('id' => 'id')) }} {{ Form::hidden('company_id', $company->company_id, array('company_id' => $company->company_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
{{ $reportCity->city_name }}
{{ $report->type }}
{{ $report->subtype }}
{{ 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

{{ $report->description }}

{{ 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
{{ Lang::get('core.cancel') }} {{ Form::button(' ' . Lang::get('core.save'), array('type' => 'submit', 'class' => 'btn btn-success')) }}
{{ Form::close() }}

{{Lang::get('communalService.report_tracking')}}


@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')