@extends('admin.layouts.app')
@section('title', 'Create Testimonial')
@section('content')
<div class="card" style="max-width:700px">
    <div class="card-header">Create Testimonial</div>
    <form action="{{ route('admin.testimonials.store') }}" method="POST" enctype="multipart/form-data">
        @csrf
        <div class="form-row">
            <div class="form-group">
                <label>Name</label>
                <input type="text" name="name" class="form-control" value="{{ old('name') }}" required>
            </div>
            <div class="form-group">
                <label>Position</label>
                <input type="text" name="position" class="form-control" value="{{ old('position') }}">
            </div>
        </div>
        <div class="form-row">
            <div class="form-group">
                <label>Company</label>
                <input type="text" name="company" class="form-control" value="{{ old('company') }}">
            </div>
            <div class="form-group">
                <label>Rating (1-5)</label>
                <input type="number" name="rating" class="form-control" value="5" min="1" max="5">
            </div>
        </div>
        <div class="form-group">
            <label>Content</label>
            <textarea name="content" class="form-control" required>{{ old('content') }}</textarea>
        </div>
        <div class="form-row">
            <div class="form-group">
                <label>Image</label>
                <input type="file" name="image" class="form-control" accept="image/*">
            </div>
            <div class="form-group">
                <label>Order</label>
                <input type="number" name="order" class="form-control" value="0" min="0">
            </div>
        </div>
        <div class="form-group">
            <label class="checkbox-label"><input type="checkbox" name="is_active" value="1" checked> Active</label>
        </div>
        <button type="submit" class="btn btn-primary">Create Testimonial</button>
    </form>
</div>
@endsection
