import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
export const index = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})

index.definition = {
    methods: ["get","head"],
    url: '/dashboard/price-modifiers',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
index.url = (options?: RouteQueryOptions) => {
    return index.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
index.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: index.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
index.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: index.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
    const indexForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: index.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
        indexForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\PriceModifierController::index
 * @see app/Http/Controllers/PriceModifierController.php:13
 * @route '/dashboard/price-modifiers'
 */
        indexForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: index.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    index.form = indexForm
/**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})

create.definition = {
    methods: ["get","head"],
    url: '/dashboard/price-modifiers/create',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
create.url = (options?: RouteQueryOptions) => {
    return create.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: create.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: create.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
    const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: create.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
        createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\PriceModifierController::create
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/create'
 */
        createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: create.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    create.form = createForm
/**
* @see \App\Http\Controllers\PriceModifierController::store
 * @see app/Http/Controllers/PriceModifierController.php:41
 * @route '/dashboard/price-modifiers'
 */
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

store.definition = {
    methods: ["post"],
    url: '/dashboard/price-modifiers',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\PriceModifierController::store
 * @see app/Http/Controllers/PriceModifierController.php:41
 * @route '/dashboard/price-modifiers'
 */
store.url = (options?: RouteQueryOptions) => {
    return store.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::store
 * @see app/Http/Controllers/PriceModifierController.php:41
 * @route '/dashboard/price-modifiers'
 */
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: store.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::store
 * @see app/Http/Controllers/PriceModifierController.php:41
 * @route '/dashboard/price-modifiers'
 */
    const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: store.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::store
 * @see app/Http/Controllers/PriceModifierController.php:41
 * @route '/dashboard/price-modifiers'
 */
        storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })
    
    store.form = storeForm
/**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
export const show = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})

show.definition = {
    methods: ["get","head"],
    url: '/dashboard/price-modifiers/{price_modifier}',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
show.url = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { price_modifier: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    price_modifier: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        price_modifier: args.price_modifier,
                }

    return show.definition.url
            .replace('{price_modifier}', parsedArgs.price_modifier.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
show.get = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: show.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
show.head = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: show.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
    const showForm = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: show.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
        showForm.get = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\PriceModifierController::show
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
        showForm.head = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: show.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    show.form = showForm
/**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
export const edit = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})

edit.definition = {
    methods: ["get","head"],
    url: '/dashboard/price-modifiers/{price_modifier}/edit',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
edit.url = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { price_modifier: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    price_modifier: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        price_modifier: args.price_modifier,
                }

    return edit.definition.url
            .replace('{price_modifier}', parsedArgs.price_modifier.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
edit.get = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: edit.url(args, options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
edit.head = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: edit.url(args, options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
    const editForm = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: edit.url(args, options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
        editForm.get = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\PriceModifierController::edit
 * @see app/Http/Controllers/PriceModifierController.php:0
 * @route '/dashboard/price-modifiers/{price_modifier}/edit'
 */
        editForm.head = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: edit.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    edit.form = editForm
/**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
export const update = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})

update.definition = {
    methods: ["put","patch"],
    url: '/dashboard/price-modifiers/{price_modifier}',
} satisfies RouteDefinition<["put","patch"]>

/**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
update.url = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { price_modifier: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    price_modifier: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        price_modifier: args.price_modifier,
                }

    return update.definition.url
            .replace('{price_modifier}', parsedArgs.price_modifier.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
update.put = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'put'> => ({
    url: update.url(args, options),
    method: 'put',
})
/**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
update.patch = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
    url: update.url(args, options),
    method: 'patch',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
    const updateForm = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: update.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'PUT',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
        updateForm.put = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PUT',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
            /**
* @see \App\Http\Controllers\PriceModifierController::update
 * @see app/Http/Controllers/PriceModifierController.php:72
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
        updateForm.patch = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: update.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'PATCH',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    update.form = updateForm
/**
* @see \App\Http\Controllers\PriceModifierController::destroy
 * @see app/Http/Controllers/PriceModifierController.php:96
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
export const destroy = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

destroy.definition = {
    methods: ["delete"],
    url: '/dashboard/price-modifiers/{price_modifier}',
} satisfies RouteDefinition<["delete"]>

/**
* @see \App\Http\Controllers\PriceModifierController::destroy
 * @see app/Http/Controllers/PriceModifierController.php:96
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
destroy.url = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions) => {
    if (typeof args === 'string' || typeof args === 'number') {
        args = { price_modifier: args }
    }

    
    if (Array.isArray(args)) {
        args = {
                    price_modifier: args[0],
                }
    }

    args = applyUrlDefaults(args)

    const parsedArgs = {
                        price_modifier: args.price_modifier,
                }

    return destroy.definition.url
            .replace('{price_modifier}', parsedArgs.price_modifier.toString())
            .replace(/\/+$/, '') + queryParams(options)
}

/**
* @see \App\Http\Controllers\PriceModifierController::destroy
 * @see app/Http/Controllers/PriceModifierController.php:96
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
destroy.delete = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
    url: destroy.url(args, options),
    method: 'delete',
})

    /**
* @see \App\Http\Controllers\PriceModifierController::destroy
 * @see app/Http/Controllers/PriceModifierController.php:96
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
    const destroyForm = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: destroy.url(args, {
                    [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                        _method: 'DELETE',
                        ...(options?.query ?? options?.mergeQuery ?? {}),
                    }
                }),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\PriceModifierController::destroy
 * @see app/Http/Controllers/PriceModifierController.php:96
 * @route '/dashboard/price-modifiers/{price_modifier}'
 */
        destroyForm.delete = (args: { price_modifier: string | number } | [price_modifier: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: destroy.url(args, {
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'DELETE',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })
    
    destroy.form = destroyForm
const PriceModifierController = { index, create, store, show, edit, update, destroy }

export default PriceModifierController