@extends('admin.partials.master')
@section('admin_content')
<div class="row">
    <div class="col-md-8 offset-md-2">
        <div class="card">
            <div class="card-header">
                <h4>Add New Video</h4>
            </div>
            <div class="card-body">
                <form action="{{ route('admin.videos.store') }}" method="POST" enctype="multipart/form-data">
                    @csrf
                    <div class="form-group">
                        <label>Video Title</label>
                        <input type="text" name="title" class="form-control" required>
                    </div>

                    <div class="form-group">
                        <label>Thumbnail</label>
                        <input type="file" name="thumbnail" class="form-control" required>
                    </div>

                    <div class="form-group">
                        <label>Video URL</label>
                        <input type="url" name="url" class="form-control" required>
                    </div>

                    <div class="form-group">
                        <label>Platform</label>
                        <select name="platform" class="form-control">
                            <option value="youtube">YouTube</option>
                            <option value="vimeo">Vimeo</option>
                            <option value="other">Other</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label>Status</label>
                        <select name="status" class="form-control">
                            <option value="active">Active</option>
                            <option value="inactive">Inactive</option>
                        </select>
                    </div>

                    <button type="submit" class="btn btn-primary">Save Video</button>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
