[Back]
@extends('layouts.public')

@section('content')
<div class="flex items-center justify-between mb-6">
    <h1 class="text-2xl font-bold">Add Product</h1>
    <a href="{{ route('admin.products.index') }}" class="underline">Back</a>
</div>

<div class="bg-white rounded-xl shadow p-6">
    <form method="POST" action="{{ route('admin.products.store') }}" class="space-y-6">
        @csrf

        @include('admin.products._form', ['product' => $product])

        <button class="px-5 py-3 rounded bg-black text-white">
            Save Product
        </button>
    </form>
</div>
@endsection