@extends('layouts.app') @section('page-header') @endsection @section('htmlheader_title') Add a Contact to a Site @endsection @section('contentheader_title') Add a Contact to a Site @endsection @section('main-content')

Select a Contact and a Site to Link Them

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Contacts

@foreach($contacts as $contact) @endforeach
Select Name Organization Phone Email Address City Zip
{{ $contact->name}} {{ $contact->organization}} {{ $contact->tel}} {{ $contact->email}} {{ $contact->add}} {{ $contact->city}} {{ $contact->zip}}
Select Name Organization Phone Email Address City Zip

Sites

@foreach($sites as $site) @endforeach
Select Name Type Latitude Longitude
{{ $site->name}} {{ $site->type}} {{ $site->latitude}} {{ $site->longitude}}
Select Name Type Latitude Longitude
@endsection @section('page-scripts') {{ asset('/plugins/jQuery/jQuery-2.1.4.min.js') }} @endsection