@if(count($response)>0) @foreach($response as $row)
  • {{ucfirst($row->UserName[0])}}
    @if($row->ParentType == TicketLog::TICKET_USER_TYPE_ACCOUNT) {{ucfirst($row->UserName)}} @elseif($row->ParentType == TicketLog::TICKET_USER_TYPE_CONTACT) {{ucfirst($row->UserName)}} @elseif($row->ParentType == TicketLog::TICKET_USER_TYPE_USER) {{ucfirst($row->UserName)}} @elseif($row->ParentType == TicketLog::TICKET_USER_TYPE_SYSTEM) {{ucfirst($row->UserName)}} @endif @if($row->Action == TicketLog::TICKET_ACTION_CREATED) Created Ticket @elseif($row->Action == TicketLog::TICKET_ACTION_ASSIGNED_TO) Assigned Ticket @elseif($row->Action == TicketLog::TICKET_ACTION_AGENT_REPLIED) Replied To Ticket @elseif($row->Action == TicketLog::TICKET_ACTION_CUSTOMER_REPLIED) Replied To Ticket @elseif($row->Action == TicketLog::TICKET_ACTION_STATUS_CHANGED) Changed Status @elseif($row->Action == TicketLog::TICKET_ACTION_NOTE_ADDED) Note Added @elseif($row->Action == TicketLog::TICKET_ACTION_FIELD_CHANGED) {{$row->ActionText}} @endif
    {{\Carbon\Carbon::createFromTimeStamp(strtotime($row->created_at))->diffForHumans()}} ({{$row->created_at}}) {{-- ------------------------------------------------------------------------------------------------------}} {{-- @if($row->TimelineType == 3 && $row->TicketFieldID == 0 && $row->CustomerID != 0) @if($row->CustomerType == 1) {{ucfirst($row->UserName)}} @elseif($row->CustomerType == 2) {{ucfirst($row->UserName)}} @endif @else {{ucfirst($row->UserName)}} @endif @if($row->TimelineType == 1) @if($row->TicketSubmit == 1) Submitted a new ticket @else Replied to the ticket @endif @elseif($row->TimelineType == 2) added a note to the ticket @else @if($row->TicketFieldID == Ticketfields::default_agent) assigned the ticket @elseif($row->TicketFieldID == 0) created the ticket @else updated ticket {{Ticketfields::$defaultTicketFields[$row->TicketFieldID]}} of @endif @endif {{$row->Subject}} @if($row->TimelineType == 3) @if($row->TicketFieldID == Ticketfields::default_priority) @if($row->TicketFieldValueToID > 0) to {{$fieldPriority[$row->TicketFieldValueToID]}} @else none @endif @elseif($row->TicketFieldID == Ticketfields::default_agent) to @if($row->TicketFieldValueToID > 0) {{$agents[$row->TicketFieldValueToID]}} @else none @endif @elseif($row->TicketFieldID == Ticketfields::default_group) to @if($row->TicketFieldValueToID > 0) to {{$groups[$row->TicketFieldValueToID]}} @else none @endif @elseif($row->TicketFieldID == 0) @if($row->TicketSubmit == 0 && $row->CustomerType != 0) on the behalf of @if($row->CustomerType == 1) {{$accounts[$row->CustomerID]}} @elseif($row->CustomerType == 2) {{$contacts[$row->CustomerID]}} @endif @endif @elseif($row->TicketFieldID == Ticketfields::default_description) @else @if($row->TicketFieldValueToID > 0) to {{array_key_exists($row->TicketFieldValueToID,$fieldValues)? $fieldValues[$row->TicketFieldValueToID]:''}} @else none @endif @endif @endif
    {{\Carbon\Carbon::createFromTimeStamp(strtotime($row->created_at))->diffForHumans()}}--}}
  • @endforeach @endif