@forelse ($histories as $history)
@if ($history->user)
{{ $history->user->name }}
@endif

@switch($history->event_type) @case("file-added") {{ __(ucfirst($history->event_type)) }} @lang('app.by') {{ $history->user->name }} {{ __('modules.client.viewDetails') }} @break @case("proposal-created") {{ __(ucfirst($history->event_type)) }} @lang('app.by') {{ $history->user->name }} {{ __('modules.client.viewDetails') }} @break @case("note-added") {{ __(ucfirst($history->event_type)) }} @lang('app.by') {{ $history->user->name }} {{ __('modules.client.viewDetails') }} @break @case("followup-created") {{ __(ucfirst($history->event_type)) }} @lang('app.by') {{ $history->user->name }} {{ __('modules.client.viewDetails') }} @break @case($history->event_type == "agent-assigned" || $history->event_type == "stage-updated" || $history->event_type == "deal-updated" || $history->event_type == "pipeline-updated") {{ __(ucfirst($history->event_type)) }} @lang('app.by') @if ($history->user && $history->user->image_url){{ $history->user->name }}@endif {{__('modules.client.viewDetails')}} @break @case($history->event_type == "followup-deleted" ) {{ __(ucfirst($history->event_type)) }} @lang('app.by') @if ($history->user && $history->user->image_url){{ $history->user->name }}@endif @break @case($history->event_type == "proposal-deleted" ) {{ __(ucfirst($history->event_type)) }} @lang('app.by') @if ($history->user && $history->user->image_url){{ $history->user->name }}@endif @break @case($history->event_type == "note-deleted" ) {{ __(ucfirst($history->event_type)) }} @lang('app.by') @if ($history->user && $history->user->image_url){{ $history->user->name }}@endif @break @case($history->event_type == "file-deleted" ) {{ __(ucfirst($history->event_type)) }} @lang('app.by') @if ($history->user && $history->user->image_url){{ $history->user->name }}@endif @break @endswitch

{{ $history->created_at->timezone(company()->timezone)->translatedFormat(company()->date_format .' '. company()->time_format) }}
@empty @endforelse