@foreach($data as $history)
  • {{$history['action']}} {{$history['updated_at']}}
    by {{$history['action'] !="VERIFIED" ? $history['updated_by'] : $history['changes']['Nominated Email']}} @if($history['action'] === 'UPDATE') @foreach($history['changes'] as $field => $changes)
      @if($field != 'Status')
    • {{$field}} set from {{$changes[0]}} to {{$changes[1]}}
    • @else
    • {{$field}} set to {{$changes[1] == '0' ? 'Inactive':'Active'}}
    • @endif
    @endforeach @elseif($history['action'] === 'UPLOAD')
    • Successfully Uploaded
    @elseif($history['action'] === 'VERIFY')
    • Verification email resent to {{$history['changes']['Nominated Email']}}
    @elseif($history['action'] === 'VERIFIED')
    • Employee email verified on {{ date('M. d, Y g:i A', strtotime($history['changes']['Date Verified']))}}
    @elseif($history['action'] == 'UPDATE/VERIFY') @foreach($history['changes'] as $field => $changes)
    • {{$field}} set from {{$changes[0]}} to {{$changes[1]}}
    • Verification email resent to {{$changes[1]}}
    @endforeach @else
    • Successfully Added
    @endif
  • @endforeach