<x-app-layout>
    @section('title')
        Pages Management
    @endsection
    <!-- Page Heading -->
    {{-- <h1 class="h3 mb-2 text-gray-800">
        @can('Page create')
            <a href="{{ route('admin.pages.create') }}" class="btn btn-primary"><i
                    class="fas fa-plus" aria-hidden="true"></i>
                Add New company image
            </a>
        @endcan
    </h1> --}}
    <!-- DataTales Example -->
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">
                Update
            </h6>
        </div>
        <div class="card-body">
            <form action="{{ route('admin.agent.hero2.store') }}" method="POST" enctype="multipart/form-data">
                @csrf
                <div class="row">
                    @if ($errors->any())
                        <ul>
                            @foreach ($errors->all() as $error)
                                <div>{{ $error }}</div>
                            @endforeach
                        </ul>

                    @endif
                    <div class="col-12">
                        <label for="">Title</label>
                        <textarea name="title" class="form-control summernote">{{ $data?->title }}</textarea>
                    </div>
                    <div class="col-12">
                        <label for="">Description1</label>
                        <textarea name="description1" placeholder="Description" class="form-control summernote" required>{{ $data?->description1 }} </textarea>
                    </div>
                    <div class="col-12">
                        <label for="">Description2</label>
                        <textarea name="description2" placeholder="Description" class="form-control summernote" required>{{ $data?->description2 }} </textarea>
                    </div>
                    <div class="col-12">
                        <label for="">Description3</label>
                        <textarea name="description3" placeholder="Description" class="form-control summernote" required>{{ $data?->description3 }} </textarea>
                    </div>
                    <div class="col-12">
                        <label for="">Description4</label>
                        <textarea name="description4" placeholder="Description" class="form-control summernote" required>{{ $data?->description4 }} </textarea>
                    </div>
                    <div class="col-12">
                        <div class="mt-3">
                            <button type="submit" class="btn btn-primary">Update</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

</x-app-layout>
