@if($notification->fromUser)
{{$notification->fromUser->username}}
@else
Avatar
@endif
@switch($notification->type) @case(\App\Model\Notification::NEW_TIP) @if(isset($notification->transaction)) {{$notification->transaction->sender->name}} {{__("sent you a tip of")}} {{\App\Providers\SettingsServiceProvider::getWebsiteFormattedAmount(\App\Providers\PaymentsServiceProvider::getTransactionAmountWithTaxesDeducted($notification->transaction))}}. @else {{__('No transaction data')}} @endif @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) {{ __(\App\Providers\SettingsServiceProvider::leftAlignedCurrencyPosition() ? 'Withdrawal processed' : 'Withdrawal processed rightAligned',[ '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 @case(\App\Model\Notification::PPV_UNLOCK) {{__('Someone unlocked your'). ' ' . $notification->PPVUnlockType . '.'}} @break @endswitch
{{ \Carbon\Carbon::parse($notification->created_at)->diffForhumans() }}