@extends('layouts.'.env('THEME')) @section('style') @endsection @section('content')
< Areas
Tools
With notes?   With GPON SN? With install date?   With GPON SN?   With distance from co-ord
{!! Form::open([ 'url' => 'tools/network_map_export', 'id' => 'network_map_export_form', 'enctype' => 'multipart/form-data']) !!} {!! Form::close() !!} {!! Form::open(['url' => '/network_addresses/ilm_populate']) !!}
Parse ilm txt file

Loops through each line of a txt file. Breaks each line up by pip symbol to find ilm data for address based off GPON serial number.

{!! Form::open([ 'url' => 'network_addresses/parse_ilm_txt', 'id' => 'parse_ilm_txt_form', 'enctype' => 'multipart/form-data']) !!}

{!! Form::close() !!}
CSV overwrite importer

Updates information for addresses with a CSV file. Correct format of the CSV file should match the one that you can download above.

{!! Form::open([ 'url' => '/network_addresses/import_network_address_csv', 'id' => 'import_network_address_csv_form', 'enctype' => 'multipart/form-data']) !!}

{!! Form::close() !!}
As built KML parser

Updates dp_id and port from folder structure of KML file
Right click Save place as... on your Distribution points folder and save as a KML to upload here.

{!! Form::open([ 'url' => 'tools/as_built_parser', 'id' => 'as_built_parser_form', 'enctype' => 'multipart/form-data']) !!}

{!! Form::close() !!}
@if(!empty($report))
    @foreach($report as $key => $val) @if(!empty($val['error']))
  • Row {{ $key }}: {!! $val['info'] !!}

    @if(is_array($val['error']) || is_object($val['error'])) @foreach($val['error'] as $col => $issues) @foreach($issues as $k => $description) {!! $description !!}. @endforeach @endforeach @elseif(is_string($val['error'])) {!! $val['error'] !!} @endif

  • @endif @endforeach
@endif
Total addresses: {{ $area->getNetworkAddresses()->count() }}
@foreach($area->getNetworkAddresses() as $adr) {!! Form::open([ 'url' => 'api/async_adr_update', 'id' => 'adr-'.$adr->id.'-form', 'class' => 'ajaxform', 'style' => 'display: inline;', 'data-endpoint' => 'async_adr_update']) !!} {!! Form::hidden('id', $adr->id) !!} {!! Form::close() !!} @endforeach
UPRN Postcode Line 1 Customer
{{ $adr->uprn }} {{ $adr->postcode }} {{ $adr->address_line_1 }} @if(!empty($adr->findLead())) {{ $adr->findLead()->fullname }}
@if(!empty($adr->findLead()->user->notes))
Notes
@foreach($adr->findLead()->user->notes as $note) {{ $note->created_at->diffForHumans() }} {{ $note->body }}

@endforeach
@endif @endif
Network state @if(empty($_GET['order_by'])) @else @endif DP ID Port iLM reading Pass/fail OK for install Date RFS Forecast RFS
{!! Form::select('network_state', config('enum.adr_network_states'), $adr->network_state, ['id' => 'adr_network_state'.$adr->id]) !!} {!! Form::text('dp_id', $adr->dp_id, ['id' => 'adr_dp_id'.$adr->id, 'placeholder' => 'DP ID']) !!} {!! Form::text('port', $adr->port, ['id' => 'adr_port'.$adr->id, 'placeholder' => 'Port']) !!} {!! Form::text('ilm_reading', $adr->ilm_reading, ['id' => 'adr_ilm_reading'.$adr->id, 'placeholder' => 'ilm reading']) !!} {!! Form::select('pass_fail', ['pass' => 'pass', 'fail' => 'fail'], $adr->pass_fail, ['id' => 'adr_pass_fail'.$adr->id]) !!} {!! Form::select('ok_install', ['yes' => 'yes', 'no' => 'no'], $adr->ok_install, ['id' => 'adr_ok_install'.$adr->id]) !!} {!! Form::text('date_rfs', $adr->date_rfs, ['id' => 'adr_date_rfs'.$adr->id, 'placeholder' => 'Date RFS']) !!} {!! Form::text('forcast_rfs', $adr->forcast_rfs, ['id' => 'adr_forcast_rfs'.$adr->id, 'placeholder' => 'Forcasted RFS']) !!}
@endsection