@extends('layouts.app') @if(empty($org_type)) @section('form-title') {{ __('Add new organisation') }} @endsection @else @section('form-title') {{ 'Add new '.strtolower($org_name) }} @endsection @endif @section('breadcrumb') @if(empty($org_type)) @else @endif @endsection @section('content') @include('partials.modals.maps') @php $google_maps_field = $settings__->google_maps_field ? json_decode($settings__->google_maps_field) : null; @endphp
@csrf
@php $name_placeholder = empty($org_type) ? __('Organisation name') : $org_name . ' name'; @endphp @if($errors->has('name'))

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

@endif
@if(canViewUpdate('app-owner'))
{!! yesNoRadio('application_owner', old('application_owner', 'no')) !!} @if($errors->has('application_owner'))

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

@endif
@endif @if(empty($org_type))
{!! organisationTypes([old('organisation_types[]')]) !!} @if($errors->has('organisation_types'))

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

@endif
@else {!! organisationType('organisation_types[]', $org_type) !!} @endif
@if($errors->has('zip'))

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

@endif
@if($errors->has('house_number'))

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

@endif
@if($errors->has('street'))

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

@endif
@if($errors->has('city'))

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

@endif
@if($google_maps_field->option_to_fill_in === 'yes')
@if($google_maps_field->forward_to_gm_api === 'yes') @else @endif @if($errors->has('gml'))

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

@endif
@endif
{!! countries(156) !!} @if($errors->has('country'))

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

@endif
@if($errors->has('phone'))

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

@endif
@if($errors->has('website'))

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

@endif
@if($errors->has('email'))

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

@endif
@if(request()->has('return')) @endif
@endsection @push('child-scripts') @include('partials.postcode-js') @endpush