@section('site_title', formatTitle([__('Edit'), __('Link'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => request()->is('admin/*') ? route('admin.dashboard') : route('dashboard'), 'title' => request()->is('admin/*') ? __('Admin') : __('Home')], ['url' => request()->is('admin/*') ? route('admin.links') : route('links'), 'title' => __('Links')], ['title' => __('Edit')], ]])

{{ __('Edit') }}

{{ __('Link') }}
@include('shared.buttons.copy-link', ['class' => 'btn-sm text-primary'])
@include('links.partials.menu')
@include('shared.message')
@csrf @if(request()->is('admin/*')) @endif
@include('icons.link', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
@cannot('domains', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.website', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('domain_id')) {{ $errors->first('domain_id') }} @endif
@include('icons.abc', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('alias')) {{ $errors->first('alias') }} @endif
@cannot('spaces', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.workspaces', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('space_id')) {{ $errors->first('space_id') }} @endif
@cannot('password', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.lock', ['class' => 'width-4 height-4 fill-current text-muted'])
is('admin/*')) disabled @else @cannot('password', ['App\Models\Link']) disabled @endcannot @endif>
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@cannot('expiration', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.date-range', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('icons.expire', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('expiration_date')) {{ $errors->first('expiration_date') }} @endif
@if ($errors->has('expiration_time')) {{ $errors->first('expiration_time') }} @endif
@cannot('expiration', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@cannot('expiration', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.link', ['class' => 'width-4 height-4 fill-current text-muted'])
@include('icons.mouse', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('expiration_url')) {{ $errors->first('expiration_url') }} @endif
@if ($errors->has('expiration_clicks')) {{ $errors->first('expiration_clicks') }} @endif
@cannot('stats', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@cannot('stats', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.bar-chart', ['class' => 'width-4 height-4 fill-current text-muted'])
is('admin/*')) disabled @else @cannot('stats', ['App\Models\Link']) disabled @endcannot @endif>
@include('icons.lock', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('privacy')) {{ $errors->first('privacy') }} @endif
@if ($errors->has('privacy_password')) {{ $errors->first('privacy_password') }} @endif
@cannot('disabled', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@include('icons.block', ['class' => 'width-4 height-4 fill-current text-muted'])
@if ($errors->has('disabled')) {{ $errors->first('disabled') }} @endif
@cannot('pixels', ['App\Models\Link']) @if(paymentProcessors()) @include('icons.lock-open', ['class' => 'fill-current text-primary width-4 height-4']) @endif @endcannot
@if ($errors->has('pixel_ids')) {{ $errors->first('pixel_ids') }} @endif
@foreach([ ['title' => __('None'), 'value' => 0, 'icon' => '', 'input' => 'empty'], ['title' => __('Country'), 'value' => 1, 'icon' => 'flag', 'input' => 'country'], ['title' => __('Platform'), 'value' => 2, 'icon' => 'devices', 'input' => 'platform'], ['title' => __('Language'), 'value' => 3, 'icon' => 'language', 'input' => 'language'], ['title' => __('Rotation'), 'value' => 4, 'icon' => 'cached', 'input' => 'rotation'] ] as $targetButton) @endforeach
@if(request()->is('admin/*')) @include('admin.users.partials.card', ['user' => $link->user]) @endif @include('shared.modals.utm') @include('shared.modals.share-link')