+ {/* Language tabs row */}
+
+ {LANG_TABS.map((tab) => (
+
+ ))}
+
+
+ {/* Form card */}
+
+ {/* Ady */}
+
+
+ {t('loanTypes.fields.name', 'Ady')}
+ *
+
+
+
+
+ {/* Salgyt */}
+
+
+ {t('loanTypes.fields.tax', 'Salgyt')}
+ *
+
+
+
+
+ {/* Karz möhleti */}
+
+
+ {t('loanTypes.fields.loanTerm', 'Karz möhleti')}
+ *
+
+
+
+
+ {/* Bellikler */}
+
+
+ {t('loanTypes.fields.notes', 'Bellikler')}
+
+
+
+
+ {/* Işjeň */}
+
+
+ {t('loanTypes.fields.isActive', 'Işjeň')}
+
+
+
+
+
+
+
+
+ {/* Actions */}
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/src/features/loanTypes/hooks/useLoanTypes.ts b/src/features/loanTypes/hooks/useLoanTypes.ts
new file mode 100644
index 0000000..56e6ae7
--- /dev/null
+++ b/src/features/loanTypes/hooks/useLoanTypes.ts
@@ -0,0 +1,97 @@
+// features/loanTypes/hooks/useLoanTypes.ts
+
+import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'
+import { toast } from 'sonner'
+import { useTranslation } from 'react-i18next'
+import {
+ fetchLoanTypes,
+ fetchLoanTypeById,
+ createLoanType,
+ updateLoanType,
+ deleteLoanType,
+ type LoanTypeListParams,
+ type CreateLoanTypePayload,
+ type UpdateLoanTypePayload,
+} from '../api/loanTypesApi'
+
+// ─── Query Keys ───────────────────────────────────────────────────────────────
+
+export const loanTypeKeys = {
+ all: () => ['loanTypes'] as const,
+ list: (params: LoanTypeListParams) => ['loanTypes', 'list', params] as const,
+ detail: (id: number) => ['loanTypes', 'detail', id] as const,
+}
+
+// ─── useGetLoanTypes ──────────────────────────────────────────────────────────
+
+export function useGetLoanTypes(params: LoanTypeListParams = {}) {
+ return useQuery({
+ queryKey: loanTypeKeys.list(params),
+ queryFn: () => fetchLoanTypes(params),
+ placeholderData: (prev) => prev,
+ })
+}
+
+// ─── useGetLoanTypeById ───────────────────────────────────────────────────────
+
+export function useGetLoanTypeById(id: number | undefined) {
+ return useQuery({
+ queryKey: loanTypeKeys.detail(id!),
+ queryFn: () => fetchLoanTypeById(id!),
+ enabled: !!id,
+ })
+}
+
+// ─── useCreateLoanType ────────────────────────────────────────────────────────
+
+export function useCreateLoanType() {
+ const queryClient = useQueryClient()
+ const { t } = useTranslation()
+
+ return useMutation({
+ mutationFn: (payload: CreateLoanTypePayload) => createLoanType(payload),
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: loanTypeKeys.all() })
+ toast.success(t('loanTypes.toast.created', 'Karz görnüşi üstünlikli döredildi'))
+ },
+ onError: (error: Error) => {
+ toast.error(error.message || t('loanTypes.toast.createError', 'Döretmek başartmady'))
+ },
+ })
+}
+
+// ─── useUpdateLoanType ────────────────────────────────────────────────────────
+
+export function useUpdateLoanType(id: number) {
+ const queryClient = useQueryClient()
+ const { t } = useTranslation()
+
+ return useMutation({
+ mutationFn: (payload: UpdateLoanTypePayload) => updateLoanType(id, payload),
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: loanTypeKeys.all() })
+ toast.success(t('loanTypes.toast.updated', 'Karz görnüşi üstünlikli täzelendi'))
+ },
+ onError: (error: Error) => {
+ toast.error(error.message || t('loanTypes.toast.updateError', 'Täzelemek başartmady'))
+ },
+ })
+}
+
+// ─── useDeleteLoanType ────────────────────────────────────────────────────────
+
+export function useDeleteLoanType() {
+ const queryClient = useQueryClient()
+ const { t } = useTranslation()
+
+ return useMutation({
+ mutationFn: (id: number) => deleteLoanType(id),
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: loanTypeKeys.all() })
+ toast.success(t('loanTypes.toast.deleted', 'Karz görnüşi üstünlikli pozuldy'))
+ },
+ onError: (error: Error) => {
+ toast.error(error.message || t('loanTypes.toast.deleteError', 'Pozmak başartmady'))
+ },
+ })
+}
\ No newline at end of file
diff --git a/src/features/requiredDocuments/api/requiredDocumentsApi.ts b/src/features/requiredDocuments/api/requiredDocumentsApi.ts
new file mode 100644
index 0000000..bade0a0
--- /dev/null
+++ b/src/features/requiredDocuments/api/requiredDocumentsApi.ts
@@ -0,0 +1,163 @@
+// ─── Types ────────────────────────────────────────────────────────────────────
+
+export interface LoanDocumentTranslation {
+ tk: string
+ ru: string
+ en: string
+}
+
+export interface LoanDocument {
+ id: number
+ name: LoanDocumentTranslation
+ description: LoanDocumentTranslation
+ createdAt: string
+ updatedAt: string
+}
+
+export interface LoanDocumentPayload {
+ name: LoanDocumentTranslation
+ description: LoanDocumentTranslation
+}
+
+export interface PaginatedResponse