<x-app-layout>
    @section('title')
        Services
    @endsection

    <div class="row">
        <div class="col-lg-12 m-auto">
            <!-- Page Heading -->
            <h1 class="h3 mb-2 text-gray-800">
                <a href="{{ route('admin.services.index') }}" class="btn btn-primary"><i class="fas fa-plus"
                        aria-hidden="true"></i>
                    Listing Services
                </a>
            </h1>
            <!-- DataTales Example -->
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">
                        Listing Services Table
                    </h6>
                </div>
                <div class="card-body">
                    <form role="form" method="post" action="{{ route('admin.services.store') }}"
                        class="needs-validation" novalidate>
                        {{ csrf_field() }}
                        <div class="box-body">
                            <div class="row">
                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <label class="mb-0">Service name <span class="text-danger">*</span></label>
                                        <input type="text" name="name"
                                            class="form-control @error('name') is-invalid @enderror"
                                            placeholder="Services name" value="{{ old('name') }}" required />
                                        @error('name')
                                            <span class="text-danger">{{ $message }}</span>
                                        @enderror
                                    </div>
                                </div>

                                <div class="col-sm-12">
                                    <div class="form-group">
                                        <label for="status" class="mb-0">Services Status <span
                                                class="text-danger">*</span></label>
                                        <select name="status" id="status"
                                            class="form-control @error('status') is-invalid @enderror">
                                            <option value="1">Active</option>
                                            <option value="0">Inactive</option>
                                        </select>
                                        @error('status')
                                            <span class="text-danger">{{ $message }}</span>
                                        @enderror
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="box-footer">
                            <button type="submit" class="btn btn-primary">Create</button>

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

</x-app-layout>
