@extends('layouts.redirect') @section('site_title', __('Link preview')) @section('content')

{{ __('Link preview') }}

{{ $link->displayShortUrl }}

@if($link->clicks_limit || $link->ends_at)
@if($link->clicks_limit)

{!! __('Will expire after :count clicks', ['count' => '' . $link->clicks_limit . '']) !!}

@endif @if($link->ends_at)

{!! __('Will expire on :date at :time', ['date' => '' . $link->ends_at->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')) . '', 'time' => '' . $link->ends_at->tz(Auth::user()->timezone ?? config('settings.timezone'))->format('H:i') . '']) !!} UTC{{ \Carbon\CarbonTimeZone::create(Auth::user()->timezone ?? config('settings.timezone'))->toOffsetName() }}

@endif @if($link->expiration_url)

{!! __('Will redirect to :url once expired', ['url' => '' . e($link->expiration_url) . '']) !!}

@endif
@endif @if($link->targets_type)
@if($link->targets_type == 'continents' && $link->targets !== null) @foreach($link->targets as $continent)

{!! __('If the continent is :name will redirect to :url', ['name' => '' . __(config('continents')[$continent->key]) . '', 'url' => '' . e($continent->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'countries' && $link->targets !== null) @foreach($link->targets as $country)

{!! __('If the country is :name will redirect to :url', ['name' => '' . __(config('countries')[$country->key]) . '', 'url' => '' . e($country->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'operating_systems' && $link->targets !== null) @foreach($link->targets as $platform)

{!! __('If the operating system is :name will redirect to :url', ['name' => '' . $platform->key . '', 'url' => '' . e($platform->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'browsers' && $link->targets !== null) @foreach($link->targets as $browser)

{!! __('If the browser is :name will redirect to :url', ['name' => '' . $browser->key . '', 'url' => '' . e($browser->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'languages' && $link->targets !== null) @foreach($link->targets as $language)

{!! __('If the language is :name will redirect to :url', ['name' => '' . $language->key . '', 'url' => '' . e($language->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'devices' && $link->targets !== null) @foreach($link->targets as $device)

{!! __('If the device is :name will redirect to :url', ['name' => '' . __(config('devices')[$device->key]) . '', 'url' => '' . e($device->value) . '']) !!}

@endforeach @endif @if($link->targets_type == 'rotations' && $link->targets !== null) @foreach($link->targets as $rotation)

{!! __('Will rotate to :url', ['url' => '' . e($rotation->value) . '']) !!}

@endforeach @endif
@endif

{!! __('Will redirect to :url', ['url' => '' . e($link->url) . '']) !!}

@if(url()->previous() != url()->current()) @endif
@endsection