<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">
                Category Edit
            </h6>
        </div>
        <div class="card-body">
            <form action="{{ route('admin.category.update',$data->id) }}" method="POST" >
                @csrf
                @method('put')
                <div class="row">
                    <div class="col-12">
                        <label for="">Category Name</label>
                        <input type="text" value="{{ $data->name }}"  class="form-control" name="name" placeholder="Category Name" required>
                        @error('name')
                            <span class="text-danger">{{$message}} </span>
                        @enderror
                    </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>
