package Daje::Controller::Languages::Super::LanguagesTranslationKeysList;
use Mojo::Base 'Mojolicious::Controller', -base, -signatures;
use v5.42;

# NAME
# ====
#
# Daje::Controller::Languages::Super::LanguagesTranslationKeysList - Model class
#
# SYNOPSIS
# ========
#
#       use Daje::Controller::Languages::Super::vLanguagesTranslationKeys##
#
# DESCRIPTION
# ===========
#
# Daje::Controller::Languages::Super::LanguagesTranslationKeys is a standard controller
#
# METHODS
# =======
#
#
# LICENSE
# =======
#
# Copyright (C) janeskil1525.
#
# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# AUTHOR
# ======
#
# janeskil1525 E<lt>janeskil1525@gmail.com
#
# This file is generated automatically by Daje Tools 2026-02-25 11:52:04.
# It will be re-generated by Daje Tools again.
# <!-- Autogenerated file 2026-02-25 11:52:04 -->

our $VERSION = '0.01';

sub load_all_languages_translation_keys($self) {
    $self->app->log->debug('Daje::Controller::Super::LanguagesTranslationKeysList::load_all_languages_translation_keys ');
    $self->render_later;
    my ($companies_pkey, $users_pkey) = $self->jwt->companies_users_pkey(
         $self->req->headers->header('X-Token-Check')
    );

    $self->app->log->debug($self->req->headers->header('X-Token-Check'));
    # my $setting = $self->param('setting');
    $self->v_languages_translation_keys_list->load_all_languages_translation_keys_p()->then(sub($result) {
        $self->render(json => $result->{data});
    })->catch(sub($err) {
        $self->app->log->error('Daje::Controller::Super::LanguagesTranslationKeysList::load_all_languages_translation_keys ' . $err);
        $self->render
    });
}
sub load_list_languages_types_fkey($self) {
    $self->app->log->debug('Daje::Controller::Super::LanguagesTranslationKeysList::load_listlanguages_types_fkey ');
    $self->render_later;
    my ($companies_pkey, $users_pkey) = $self->jwt->companies_users_pkey(
         $self->req->headers->header('X-Token-Check')
    );
    my $fkey = $self->param('languages_types_fkey');

    $self->app->log->debug($self->req->headers->header('X-Token-Check'));
    # my $setting = $self->param('setting');
    $self->v_languages__list->languages_types_fkey_p($fkey)->then(sub($result) {
        $self->render(json => $result->{data});
    })->catch(sub($err) {
        $self->app->log->error('Daje::Controller::Super::LanguagesTranslationKeys::load_languages_types_fkey ' . $err);
        $self->render
    });
}
1;

