@if($activity->event == 'login')
{{ $activity->printTime('diff') }}
@trans('firm.activities.login', [ 'user_name' => "{$activity->user->fullname}", 'ip' => $activity->ip ])
@elseif($activity->event == 'logout')
{{ $activity->printTime('diff') }}
@trans('firm.activities.logout', [ 'user_name' => "{$activity->user->fullname}" ])
@elseif($activity->event == 'user switch')
{{ $activity->printTime('diff') }}
@trans('firm.activities.user_switch', [ 'user_name' => "{$activity->user->fullname}", 'new_user' => "{$activity->getData('newUser_fullname')}" ])
@elseif($activity->event == 'new order')
{{ $activity->printTime('diff') }}
@trans('firm.activities.new_order', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('destination_name')}" ])
@elseif($activity->event == 'checkout')
{{ $activity->printTime('diff') }}
@if($activity->getData('method') == 'cash') @else @endif
@trans('firm.activities.checkout', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('table_name')}" ])
@elseif($activity->event == 'partial checkout')
{{ $activity->printTime('diff') }}
@if($activity->getData('method') == 'cash') @elseif($activity->getData('method') == 'ticket') @elseif($activity->getData('method') == 'online') @else @endif
@trans('firm.activities.partial_checkout', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('table_name')}", 'num_orders' => "". number_format($activity->getData('total_quantity'), 0) . "" ])
@elseif($activity->event == 'checkout cancel')
{{ $activity->printTime('diff') }}
@trans('firm.activities.checkout_cancel', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('table_name')}" ])
@elseif($activity->event == 'order cancel')
{{ $activity->printTime('diff') }}
@trans('firm.activities.order_cancel', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('table_name')}", 'num_orders' => "". number_format($activity->getData('total_quantity'), 0) . "" ])
@elseif($activity->event == 'table move')
{{ $activity->printTime('diff') }}
@if($activity->getData('partial')) @trans('firm.activities.table_move_partial', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('target_name')}", 'destination_table_name' => "{$activity->getData ('destination_name')}" ]) @else @trans('firm.activities.table_move', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('target_name')}", 'destination_table_name' => "{$activity->getData ('destination_name')}" ]) @endif @if($activity->getData('merged')) @trans('firm.activities.table_merge', [ 'table_name' => "{$activity->getData('target_name')}", 'destination_table_name' => "{$activity->getData ('destination_name')}" ]) @endif
@elseif($activity->event == 'end of day')
{{ $activity->printTime('diff') }}
@if($activity->user_id) @trans('firm.activities.end_of_day', [ 'user_name' => "{$activity->user->fullname}" ]) @else @trans('firm.activities.auto_end_of_day', [ 'user_name' => '' ]) @endif
@elseif($activity->event == 'sale_rewind')
{{ $activity->printTime('diff') }}
@if($activity->user_id) @trans('firm.activities.sale_rewind', [ 'user_name' => "{$activity->user->fullname}", 'table_name' => "{$activity->getData('table_name')}", ]) @endif
@endif