<x-app-layout>
    @section('title')
        Pages Management
    @endsection
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">
                Update hero section
            </h6>
        </div>
        <div class="card-body">
            <form action="{{ route('admin.herosectionStore') }}" method="POST" enctype="multipart/form-data">
                @csrf
                <div class="row">

                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">First word</label>
                           <input type="text" name="first_words" value="{{ $data?->first_words }}" class="form-control">
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">Title</label>
                            <textarea name="title" class="summernote" >{{ $data?->title }}</textarea>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">Description</label>
                            <textarea name="description"  class="form-control summernote">{{ $data?->description }}</textarea>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">Companies</label>
                            <input type="number" value="{{ $data?->companies }}" name="companies" class="form-control">
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">Countries</label>
                            <input type="number" value="{{ $data?->countries }}" name="countries" class="form-control">
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="mt-3">
                            <label for="">Video section</label>
                            <input type="file" name="video_section" class="form-control" accept="video/*">
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="mt-3">
                            <button class="btn btn-primary">Update</button>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
</x-app-layout>
