@extends('layouts.app') @section('title_full', __('Logs').' - '.App\ActivityLog::getLogTitle($current_name)) @section('sidebar') @include('partials/sidebar_menu_toggle')
@endsection @section('content')| {{ App\ActivityLog::formatColTitle($col) }} | @endforeach
|---|
| @if (isset($row[$col])) @php if ($col == 'conversation' && preg_match("/^#[0-9]+\-([0-9]+)$/", $row[$col], $m)) { $thread_id = $m[1] ?? ''; if ($thread_id) { $row[$col] = App\Thread::find($thread_id) ?: $row[$col]; } } if ($col == 'thread') { $row[$col] = App\Thread::find($row[$col]) ?: $row[$col]; } @endphp @if ($col == 'user' || $col == 'customer') {{ $row[$col]->getFullName(true) }} @elseif ($col == 'date') {{ App\User::dateFormat(new Illuminate\Support\Carbon($row[$col]), 'M j, H:i:s') }} @elseif (is_object($row[$col]) && get_class($row[$col]) == 'App\Thread') #{{ $row[$col]->conversation->number }} @else {{ $row[$col] }} @endif @else @endif | @endforeach