getMessage(); } } // Search & Pagination Logic $page = isset($_GET['page']) ? max(1, (int)$_GET['page']) : 1; $limit = 10; $offset = ($page - 1) * $limit; $search = isset($_GET['search']) ? trim($_GET['search']) : ''; $result = library_get_types_paginated($search, $limit, $offset); $types = $result['data']; $totalTypes = $result['total']; $totalPages = (int)ceil($totalTypes / $limit); $lang = library_get_language(); admin_render_header(library_trans('types'), 'types'); ?>

1): ?>