@extends('layouts.admin')
@section('title', 'Create Feature')
@section('content')
<div class="max-w-2xl mx-auto bg-white p-6 rounded-lg shadow">
<h1 class="text-2xl font-semibold mb-6">Create Feature</h1>
<form action="{{ route('admin.features.store') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-2">Title</label>
<input type="text" name="title" class="w-full rounded-md border-gray-300 shadow-sm">
</div>
<div class="mb-4">
<label class="block text-sm font-medium text-gray-700 mb-2">Icon</label>
<input type="text" name="icon" class="w-full rounded-md border-gray-300 shadow-sm">
</div>
<div class="mb-4">
<label class="flex items-center">
<input type="checkbox" name="is_active" value="1" class="rounded border-gray-300">
<span class="ml-2 text-sm text-gray-600">Is active</span>
</label>
</div>
<button type="submit" class="w-full bg-blue-600 text-white px-4 py-2 rounded-lg">Save</button>
</form>
</div>
@endsection