@extends('admin.layouts.app') @section('title', 'Site Settings') @push('styles') @endpush @section('content')
{{-- Toast success --}} @if(session('status'))
@endif {{-- Page header --}}
Configurari

Setari website

Configurează branding, bara promoțională, link-urile sociale și cheile pentru affiliate.
@csrf @method('PUT')
{{-- GENERAL --}}
General
@error('site_name')
{{ $message }}
@enderror
@error('support_phone')
{{ $message }}
@enderror
@error('support_email')
{{ $message }}
@enderror
header_promo_active) ? 'checked' : '' }}>
@error('header_promo_html')
{{ $message }}
@enderror Se acceptă HTML simplu. Preview live mai jos.
{!! old('header_promo_html', $conf->header_promo_html) !!}
Tips
  • Folosește HTML scurt în bara promo.
  • Suport phone/email apar în footer sau contacte.
  • Activează bara promo doar în campanii.
{{-- /row --}}
{{-- SOCIAL --}}
Social Links
@php $social = old('social_links', collect($conf->social_links ?? [ 'facebook'=>'', 'instagram'=>'', 'tiktok'=>'', 'youtube'=>'' ]) ->map(fn($v,$k)=>['key'=>$k,'url'=>$v]) ->values() ->all()); @endphp
@foreach($social as $i => $row) @endforeach
{{-- AFFILIATE --}}
Affiliate API
@error('affiliate_uid')
{{ $message }}
@enderror
@error('user_key')
{{ $message }}
@enderror
La checkout folosim uid și key de aici. Parametrii ofertei vin din produs (offer / lp / script).
Exemplu request
POST https://offers.power-watch.com/forms/api/
uid={{ old('affiliate_uid', $conf->affiliate_uid) ?: '...' }}
key={{ old('user_key', $conf->user_key) ?: '...' }}
offer={product.internal_offer_id}
lp={product.internal_lp}
name={name}
tel={tel}
street-address={street-address}
ip={USER_IP_ADDRESS}
ua={USER_USERAGENT}
{{-- ADVANCED --}}
Extra JSON
@error('extra_json')
{{ $message }}
@enderror JSON valid opțional; îl poți folosi pentru orice setări avansate.
{{-- Sticky Save --}}
Reset
@endsection @push('scripts') @endpush