@extends('layout.app')

@section('content')

    <section class="content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h3 class="card-title" style="color:#115548;"> Edit Cancel Reason
                            </h3>
                        </div>
                        <div class="card-body">
                            <form action="{{ route('cancel-reasons.update', $cancelReason->id) }}" method="POST">
                                @csrf
                                @method('PUT')
                                <div class="row">
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label for="reason">Cancel Reason<span
                                                    style="color: red;">*</span></label>
                                            <input type="text" class="form-control" id="reason" name="reason"
                                                placeholder="Enter Cancel Reason" value="{{ $cancelReason->reason }}" required>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label for="status">Status<span
                                                    style="color: red;">*</span></label>
                                            <select class="form-control" id="status" name="status" required>
                                                <option value="Active" {{ $cancelReason->status == 'Active' ? 'selected' : '' }}>Active</option>
                                                <option value="Inactive" {{ $cancelReason->status == 'Inactive' ? 'selected' : '' }}>Inactive</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <button type="submit" class="btn btn-primary mt-4">Submit</button>
                                    </div>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

@endsection

@section('js')

@endsection
@push('script')
@endpush

@section('ajax')


@endsection
