@extends('layouts.default')
@section('content')
<div class="container-fluid">
    <div class="row mb-3"><div class="col"><h3>{{ $page_title }}</h3><p class="text-muted mb-0">{{ $client->company_name }} için {{ $page_description }}</p></div></div>
    @include('admin.onboarding._progress')

    <form method="POST" action="{{ route('admin.onboarding.brand.save', $client) }}">
        @csrf
        <div class="row">
            <div class="col-xl-8">
                <div class="card"><div class="card-body">
                    <h5 class="mb-3">Yeni / Müşteriye Özel Marka Kiti</h5>
                    <div class="row g-3">
                        <div class="col-md-6"><label class="form-label">Hazır Marka Kiti Kullan</label><select name="brand_kit_id" class="form-control default-select"><option value="">Yeni marka kiti oluştur</option>@foreach($brandKits as $kit)<option value="{{ $kit->id }}">{{ $kit->client_id ? 'Müşteri' : 'Genel' }} — {{ $kit->name }}</option>@endforeach</select></div>
                        <div class="col-md-6"><label class="form-label">Marka Kiti Adı</label><input name="name" class="form-control" value="{{ $client->company_name }} Marka Kiti"></div>
                        <div class="col-md-6"><label class="form-label">Ajans Adı</label><input name="agency_name" class="form-control" value="Datweb"></div>
                        <div class="col-md-6"><label class="form-label">Kapak Tipi</label><select name="cover_style" class="form-control"><option value="gradient">Gradient</option><option value="minimal">Minimal</option><option value="dark">Koyu Kurumsal</option><option value="image">Görsel Arka Plan</option></select></div>
                        <div class="col-md-6"><label class="form-label">Ajans Logo URL</label><input name="agency_logo_url" class="form-control" placeholder="https://..."></div>
                        <div class="col-md-6"><label class="form-label">Müşteri Logo URL</label><input name="client_logo_url" class="form-control" placeholder="https://..."></div>
                        <div class="col-md-3"><label class="form-label">Ana Renk</label><input name="primary_color" type="color" class="form-control form-control-color" value="{{ $client->primary_color ?: '#111827' }}"></div>
                        <div class="col-md-3"><label class="form-label">Vurgu</label><input name="accent_color" type="color" class="form-control form-control-color" value="#ef5f86"></div>
                        <div class="col-md-3"><label class="form-label">İkincil</label><input name="secondary_color" type="color" class="form-control form-control-color" value="#f8fafc"></div>
                        <div class="col-md-3"><label class="form-label">Yazı</label><input name="text_color" type="color" class="form-control form-control-color" value="#111827"></div>
                        <div class="col-md-6"><label class="form-label">İletişim E-posta</label><input name="contact_email" type="email" class="form-control" value="{{ $client->email }}"></div>
                        <div class="col-md-6"><label class="form-label">Web Sitesi</label><input name="website_url" class="form-control" value="{{ $client->website }}"></div>
                        <div class="col-md-12"><label class="form-label">Footer Notu</label><textarea name="footer_note" rows="3" class="form-control">Bu rapor DW Ads Reporter tarafından otomatik oluşturulmuştur.</textarea></div>
                    </div>
                </div></div>
            </div>
            <div class="col-xl-4">
                <div class="card"><div class="card-body">
                    <h5>Rapor kimliği</h5>
                    <p class="text-muted">Bu marka kiti PDF, HTML rapor, mail eki ve müşteri portalındaki rapor görünümünde kullanılacak.</p>
                    <button class="btn btn-primary w-100">Kaydet ve Rapor Planına Geç</button>
                    <a href="{{ route('admin.onboarding.integrations', $client) }}" class="btn btn-light w-100 mt-2">Geri</a>
                </div></div>
            </div>
        </div>
    </form>
</div>
@endsection
