@extends('layouts.app', [ 'title' => trans('locations.map.points.title', ['name' => $location->name]), 'description' => '', 'breadcrumbs' => [ ['url' => route('locations.index'), 'label' => trans('locations.index.title')], ['url' => route('locations.show', $location->id), 'label' => $location->name] ], ]) @section('header-extra')
@if ($location->map) @can('update', $location) @endcan @endif
@endsection @section('content') @if ($location->map)
{{ $location->name }}isMapSvg()) style="width: 100%;" @endif /> @foreach ($location->mapPoints()->with(['targetEntity', 'location'])->get() as $point) @if ($point->visible()) {!! $point->makePin() !!} @endif @endforeach

{{ __('locations.map.legend') }}

@foreach ($location->legend() as $point) @endforeach
@else

{{ trans('locations.map.no_map') }}

@endif @endsection @section('scripts') @endsection @section('styles') @endsection