<?php

$path = '../../../';
require_once $path . 'core/includes/header.inc.php';
$page_meta['title'] = 'ID Check Log';

$twig->display('IDService/admin.twig', [
    'page_meta' => $page_meta,
    'log' => \Mtc\Plugins\LexisNexisIDU\Classes\IdCheckLog::query()
        ->with([
            'order',
            'member'
        ])
        ->latest()
        ->take(50)
        ->get()
        ->map(function ($entry) {
            $entry->response_data = json_decode($entry->response);
            return $entry;
        })
]);