{{-- @dd($histories); --}} @forelse($histories as $history)
{{ $history->user->name }}

@if($history->employee_activity == "leave-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "leave-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "leave-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "task-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "task-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "task-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "proposal-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "proposal-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "proposal-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "project-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "project-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "project-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "invoice-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "invoice-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "invoice-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "ticket-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "ticket-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "ticket-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "estimate-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "estimate-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "estimate-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "deal-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "deal-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "deal-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "client-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "client-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "client-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "expenses-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "expenses-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "expenses-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "timelog-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "timelog-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "timelog-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "event-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "event-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "event-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "product-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "product-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "product-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "creditNote-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "creditNote-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "creditNote-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "payment-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "payment-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "payment-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "order-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "order-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "order-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "contract-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "contract-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "contract-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif @if($history->employee_activity == "followUp-created" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "followUp-updated" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} {{__('modules.client.viewDetails')}} @endif @if($history->employee_activity == "followUp-deleted" ) {{ __('modules.employees.activities.'.$history->employee_activity) }} @lang('app.by') {{ $history->user->name }} @endif

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

@lang('messages.noActivityByThisUser')

@endforelse