@extends('layouts.app') @php $located = collect($pins)->filter(fn ($pin) => $pin['lat'] !== null && $pin['lng'] !== null)->values(); $missing = collect($pins)->filter(fn ($pin) => $pin['lat'] === null || $pin['lng'] === null)->values(); @endphp @section('content')

{{ __('maps.title') }}

@foreach ($colors as $state => $color) {{ __('maps.states.'.$state) }} @endforeach
@if ($apiKey === '')
{{ __('maps.missing_key') }}
@else
@endif
@if ($missing->isNotEmpty())

{{ __('maps.missing_coordinates') }}

@foreach ($missing as $pin) @endforeach
{{ __('customers.parent') }} {{ __('customers.branch') }} {{ __('common.city') }}
{{ $pin['customer'] }} {{ $pin['branch'] }} {{ $pin['city'] }}
@endif @endsection @if ($apiKey !== '') @push('scripts') @endpush @endif