@extends('layouts.panel')

@section('title', 'Edit Website')

@section('content')
    <section class="card">
        <div class="page-header">
            <p class="eyebrow">Connection Settings</p>
            <h1>Update {{ $website->name }}</h1>
            <p class="muted">Adjust credentials, status, or endpoint details without breaking the audit history.</p>
        </div>

        <form action="{{ route('websites.update', $website) }}" method="post" class="content-shell">
            @csrf
            @method('put')
            @include('partials.website-form', ['website' => $website])

            <div class="footer-actions">
                <a class="button ghost" href="{{ route('websites.show', $website) }}">Back</a>
                <button class="button primary" type="submit">Save Changes</button>
            </div>
        </form>
    </section>
@endsection
