<fieldset>
    <div class="row">
        <div class="col-md-6">
            <div class="form-group">
                <label for="wash_name">
                    Wash Name
                </label>
                <input type="text" class="form-control " id="wash_name" name="wash_name" value="{{old('wash_name')}}">
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group">
                <label for="eligible_for_free_wash">
                    <!-- Eligible for Free Wash -->
                </label>
                <!-- <input type='checkbox' class='custom-control-input change_status' id='customSwitch'>
                <label class='custom-control-label' for='customSwitch'></label> -->
                <fieldset>
                    <div class="vs-checkbox-con vs-checkbox-primary">
                        <input type="checkbox" name="eligible_for_free_wash" class="eligible_for_free_wash" id="eligible_for_free_wash">
                        <span class="vs-checkbox">
                            <span class="vs-checkbox--check">
                                <i class="vs-icon feather icon-check"></i>
                            </span>
                        </span>
                        <span class="">Eligible for Loyalty</span>
                    </div>
                </fieldset>
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group">
                <fieldset class="form-label-group">
                    <textarea class="form-control " id="wash_desc" name="wash_desc" rows="3" placeholder="Wash Description">{{old('wash_desc')}}</textarea>
                </fieldset>    
            </div>
        </div>
        <div class="col-md-12">
            <div class="form-group body_types">
                <label for="body_type">
                    Please enter prices on body types/sizes that suit your business, you can leave blank on those that do not apply to your business. Amount must be numbers only no currency symbols.
                </label>
                <label for="body_type">
                    Car Wash Price
                </label>
                @if(isset($bodyTypeOfOwner) && !empty($bodyTypeOfOwner) && count($bodyTypeOfOwner))
                    @foreach($bodyTypeOfOwner as $c)
                        <input type="hidden" name="body_type_id[]" value="{{$c['id']}}">
                        <input type="text" class="form-control " id="body_type_name" name="body_type_name[]" value="{{$c['name']}}" readonly>
                        <input type="text" class="form-control " id="price" name="price[]" value="" placeholder="Price">
                        <!-- <input type="text" class="form-control " id="duration" name="duration[]" value="" placeholder="Duration in minute"> -->
                        <input type="text" class="form-control " id="loyalty_point" name="loyalty_point[]" value="" placeholder="Loyalty Point">
                    @endforeach
                @endif
                <!-- <label for="body_type">
                    General Services
                </label> -->
                @if(isset($bodyType) && !empty($bodyType) && count($bodyType))
                    @foreach($bodyType as $c)
                        <input type="hidden" name="body_type_id[]" value="{{$c['id']}}">
                        <input type="text" class="form-control " id="body_type_name" name="body_type_name[]" value="{{$c['name']}}" readonly>
                        <input type="text" class="form-control " id="price" name="price[]" value="" placeholder="Price">
                        <!-- <input type="text" class="form-control " id="duration" name="duration[]" value="" placeholder="Duration in minute"> -->
                        <input type="text" class="form-control " id="loyalty_point" name="loyalty_point[]" value="" placeholder="Loyalty Point">
                    @endforeach
                @endif
            </div>
        </div>
        
        <div class="col-md-6">
            <div class="form-group">
                <label for="is_active">
                    Status
                </label>
                <select name="is_active" class="form-control">
                    <option value="1">Active</option>
                    <option value="0">Inactive</option>
                </select>


            </div>
        </div>
        <div class="col-md-6 offset-md-4">
            <button type="submit" class="btn btn-primary mr-1 mb-1">Save</button>
            <a class="btn btn-outline-warning mr-1 mb-1" href="{{ route('owner.wc.list') }}">Back</a>
        </div>
    </div>
</fieldset>
