Hazır Rotalar {{ $customer->name }} · Merkezi ve hesabınıza özel hazır rotalar
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@endif
Merkezi hazır rotaları hesabınızda gizleyebilir, kendi rotalarınızı oluşturup düzenleyebilir veya silebilirsiniz. Merkezin asıl kayıtları değişmez. Yeni konumlar merkez havuzundan otomatik güncellenir.
Konumumu Güncelle
Konum izni verirseniz gezi noktaları ve rotalar yakınınızdan uzağa sıralanır. Konum bilginiz sunucuya gönderilmez.
Konum alınmadı
Merkezden Gelen Hazır Rotalar
@if($centralRoutes->isEmpty())Merkezde aktif hazır rota yok.
@else
@foreach($centralRoutes as $centralRoute)
@php
$routeHidden=in_array((int)$centralRoute->id,$hiddenIds,true);
$validStops=$centralRoute->stops->filter(fn($s)=>$s->place && $s->place->is_active);
$points=$validStops->map(fn($s)=>$s->place->latitude!==null&&$s->place->longitude!==null ? $s->place->latitude.','.$s->place->longitude : null)->filter()->implode('|');
@endphp
{{ $centralRoute->name }} {{ $routeHidden?'Panelimden kaldırıldı':'Merkezi' }}
{{ $centralRoute->days_count }} gün {{ $centralRoute->sort_mode==='location'?'Konuma göre':'Manuel sıra' }} {{ $validStops->count() }} durak
@foreach($validStops->take(5) as $stop){{ $stop->place->name?:$stop->place->google_name }} @endforeach
@if(!$routeHidden && $canCreateRoute)
@endif
@if($canHideCentral)
@endif
@endforeach
@endif
@if(($editing && $canEditRoute) || (!$editing && $canCreateRoute))
@endif
Oluşturduğum Hazır Rotalar
@if($routes->isEmpty())Henüz kendinize ait rota oluşturmadınız.
@else
@foreach($routes as $localRoute)
@php
$validStops = $localRoute->stops->filter(fn($s)=>$s->place && $s->place->is_active);
$points = $validStops->map(fn($s)=>$s->place->latitude !== null && $s->place->longitude !== null ? $s->place->latitude.','.$s->place->longitude : null)->filter()->implode('|');
@endphp
{{ $localRoute->name }} {{ $localRoute->is_active ? 'Yayında' : 'Pasif' }}
{{ $localRoute->days_count }} gün {{ $localRoute->sort_mode==='location'?'Konuma göre':'Manuel sıra' }} {{ $validStops->count() }} aktif durak
@foreach($validStops->take(5) as $stop){{ $stop->place->name ?: $stop->place->google_name }} @endforeach @if($validStops->count()>5)+{{ $validStops->count()-5 }} durak @endif
@if($canEditRoute)
Düzenle @endif
@if($canDeleteRoute)
@endif
@endforeach
@endif