@extends('admin.layouts.app')
@section('title', 'Post Article')
@section('page-title', '📰 Post Article')

@section('content')
<div class="max-w-2xl">
    <div class="bg-white rounded-2xl border border-gray-200 shadow-sm p-8">
        <form method="POST" action="{{ route('admin.news.store') }}" class="space-y-5">
            @csrf
            @php $article = null; @endphp
            @include('admin.news._form')
            <div class="flex gap-3 pt-2">
                <button type="submit"
                        class="bg-wc-green hover:bg-wc-green-dark text-white font-bold px-6 py-3 rounded-xl transition-colors">
                    📰 Publish Article
                </button>
                <a href="{{ route('admin.news.index') }}"
                   class="text-gray-500 font-semibold px-6 py-3 rounded-xl border border-gray-200 hover:border-gray-300 transition-colors">
                    Cancel
                </a>
            </div>
        </form>
    </div>
</div>
@endsection
