@extends('layout.layout') @section('title') Audit Trial @endsection @section('content')
| ERX ID | SUBJECT ID | MODULE | EVENT | ACTION | {{--OLD VALUE | OLD DATE | NEW VALUE | --}}DATE | USER | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $act->erxId }} | {{ $act->subjectId }} | {{ trim(getModuleAuditTrial($act->subject_type)) }} | {{ trim(getModuleKey($key)) }} | {{ $act->description }} | {{-- @if($key=="justification" || $key=="comment")@else @if($key=="dateOfBirth" || $key=="actionDate") | {{ $act->description=="created"?"":convert_mm_dd_yyyy(fnDecryptProd(json_decode($act->properties)->old->$key)) }} | @else @if(isset(json_decode($act->properties)->old) && $act->description!="created"){{ $act->description=="created"?"":fnDecryptProd(json_decode($act->properties)->old->$key) }} | @else@endif @endif @endif @if($act->description=="created") | @else @if(isset(json_decode($act->properties)->old->updated_at)) | {{ convert_mm_dd_yyyy(json_decode($act->properties)->old->updated_at) }} | @else@endif @endif @if($key=="dateOfBirth" || $key=="actionDate") | {{ convert_mm_dd_yyyy(fnDecryptProd($event)) }} | @else{{ Str::limit($key=="justification"?$event:fnDecryptProd($event), 50) }} | @endif --}}{{ convert_mm_dd_yyyy($act->updated_at) }} | {{ json_decode($act->properties)->createdBy==""?"System":json_decode($act->properties)->createdBy }} |