@extends('layouts.site') @section('meta_title') {{ __('site.track_title') }} {{ $trackingCode ? '— '.$trackingCode : '' }} — {{ brand_name() }} @endsection @section('title', __('site.track_title')) @section('content')

{{ __('site.track_title') }}

{{ __('site.track_subtitle') }}

{{ __('site.track_search_again') }}
@if ($notFound)

{{ $trackingCode }}

{{ __('site.track_not_found') }}

{{ __('site.track_not_found_hint') }}

{{ __('site.track_search_again') }}
@else @php($t = $tracking){{-- @var array $t --}}

{{ __('site.track_code_label') }}

{{ $t['tracking_code'] }}

{{ $t['device_name'] }}

@if (! empty($t['category']))

{{ $t['category'] }}

@endif
$t['is_cancelled'], 'bg-brand-accent/15 text-brand-accent' => ! $t['is_cancelled'], ])> {{ $t['status_label'] }}

{{ (int) $t['progress_percent'] }}%

@if ($t['is_cancelled'])

{{ __('site.track_cancelled_notice') }}

@else
    @foreach ($t['steps'] as $step)
  1. $step['state'] === 'done', 'eca-track-progress__step--current' => $step['state'] === 'current', 'eca-track-progress__step--upcoming' => $step['state'] === 'upcoming', ])> {{ $step['label'] }} {{ (int) $step['progress'] }}%
  2. @endforeach
@endif
@if (! empty($t['received_at']))
{{ __('site.track_received_at') }}
{{ $t['received_at']->timezone(config('app.timezone'))->format('Y/m/d H:i') }}
@endif @if (! empty($t['delivered_at']))
{{ __('site.track_delivered_at') }}
{{ $t['delivered_at']->timezone(config('app.timezone'))->format('Y/m/d H:i') }}
@endif
{{ __('site.nav_contact') }}
@endif
@endsection