@extends('examples.modern-layout-v2') @section('title', __('messages.menu.sync')) @section('sync', 'bg-blue-50 text-blue-700') @section('content') @php // $isApiServer, $isSuperAdmin, $cities, $citySyncDetails are passed from controller. @endphp
{{ __('messages.sync.health_subtitle') }}
{{ session('success') }}
{{ session('error') }}
{{ __('messages.sync.add_city_hint') }}
{{ __('messages.sync.manage_cities_hint') }}
| {{ __('messages.sync.city_code') }} | {{ __('messages.sync.city_name') }} | {{ __('messages.sync.status') }} | SSH Host | {{ __('messages.sync.actions') }} |
|---|---|---|---|---|
|
{{ strtoupper($city->code) }}
|
@if($city->status) {{ __('messages.sync.active') }} @else {{ __('messages.sync.inactive') }} @endif
|
@if($city->ssh_host)
{{ $city->ssh_host }}
@else
Not configured
@endif
|
|
|
|
No cities found. |
||||
Code: {{ strtoupper($city->code) }}
Last Sync
@if($lastSync) {{ $lastSync->diffForHumans() }} @else Never @endif
@if(isset($details['last_success_run']) && $details['last_success_run'])Last success: {{ \Carbon\Carbon::parse($details['last_success_run']->finished_at)->diffForHumans() }} @if(!empty($details['last_success_run']->duration_ms)) ({{ (int)$details['last_success_run']->duration_ms }}ms) @endif
@endif @if(isset($details['last_failed_run']) && $details['last_failed_run'])Last failure: {{ \Carbon\Carbon::parse($details['last_failed_run']->finished_at)->diffForHumans() }}
@endifNo cities found. Cities will appear here once they start syncing data.