@if($notification->fromUser)
{{$notification->fromUser->username}}
@else
Avatar
@endif
@switch($notification->type) @case(\App\Model\Notification::NEW_TIP) {{$notification->transaction->sender->name}} {{__("sent you a tip of")}} {{\App\Providers\PaymentsServiceProvider::getTransactionAmountWithTaxesDeducted($notification->transaction)}} {{$notification->transaction->currency}}. @break @case(\App\Model\Notification::NEW_REACTION) @if($notification->post_id) {{__(":name liked your",['name'=>$notification->fromUser->name])}} {{__('post')}} @endif @if($notification->post_comment_id) {{__(":name liked your comment",['name'=>$notification->postComment->author->name])}} @endif @break @case(\App\Model\Notification::NEW_COMMENT) {{__(':name added a new comment on your',['name'=>$notification->fromUser->name])}} {{__('post')}} @break @case(\App\Model\Notification::NEW_SUBSCRIPTION) {{__("A new user subscribed to your profile")}} @break @case(\App\Model\Notification::WITHDRAWAL_ACTION) {{ __("Withdrawal processed",[ 'currencySymbol' => \App\Providers\SettingsServiceProvider::getWebsiteCurrencySymbol(), 'amount' => $notification->withdrawal->amount, 'status' => $notification->withdrawal->status, ]) }} @break @case(\App\Model\Notification::NEW_MESSAGE) {{__("Send you a message: `:message`",['message'=>$notification->userMessage->message])}} @break @case(\App\Model\Notification::EXPIRING_STREAM) {{__('Your live streaming is about to end in 30 minutes. You can start another one afterwards.')}} @break @endswitch
{{ \Carbon\Carbon::parse($notification->created_at)->diffForhumans(Carbon\Carbon::now()) }}