@if(!isset($streamEnded))
0 {{__("Watching")}} • {{__("Started streaming")}} {{\Carbon\Carbon::parse($stream->created_at)->diffForhumans()}}.
@else
{{__('Stream ended :time time ago',['time'=>\Carbon\Carbon::parse($stream->ended_at)->diffForhumans()])}}
@endif
@if(!isset($streamEnded))
@if(isset($subLocked) && $stream->user->id !== Auth::user()->id)
user))
data-placement="top"
title="{{__('This creator cannot earn money yet')}}"
@else
data-toggle="modal"
data-target="#checkout-center"
data-type="one-month-subscription"
data-recipient-id="{{$stream->user->id}}"
data-amount="{{$stream->user->profile_access_price}}"
data-first-name="{{Auth::user()->first_name}}"
data-last-name="{{Auth::user()->last_name}}"
data-billing-address="{{Auth::user()->billing_address}}"
data-country="{{Auth::user()->country}}"
data-city="{{Auth::user()->city}}"
data-state="{{Auth::user()->state}}"
data-postcode="{{Auth::user()->postcode}}"
data-available-credit="{{Auth::user()->wallet->total}}"
data-username="{{$stream->user->username}}"
data-name="{{$stream->user->name}}"
data-avatar="{{$stream->user->avatar}}"
data-stream-id="{{$stream->id}}"
@endif
>
@include('elements.icon',['icon'=>'person-add-outline'])
@endif
@if(isset($priceLocked) && $stream->user->id !== Auth::user()->id)
user))
data-placement="top"
title="{{__('This creator cannot earn money yet')}}"
@else
data-toggle="modal"
data-target="#checkout-center"
data-type="stream-access"
data-recipient-id="{{$stream->user->id ? $stream->user->id : ''}}"
data-amount="{{$stream->price}}"
data-first-name="{{Auth::user()->first_name}}"
data-last-name="{{Auth::user()->last_name}}"
data-billing-address="{{Auth::user()->billing_address}}"
data-country="{{Auth::user()->country}}"
data-city="{{Auth::user()->city}}"
data-state="{{Auth::user()->state}}"
data-postcode="{{Auth::user()->postcode}}"
data-available-credit="{{Auth::user()->wallet->total}}"
data-username="{{$stream->user->username}}"
data-name="{{$stream->user->name}}"
data-avatar="{{$stream->user->avatar}}"
data-stream-id="{{$stream->id}}"
@endif
>
@include('elements.icon',['icon'=>'lock-open-outline'])
@endif
@if($stream->canWatchStream && $stream->user->id !== Auth::user()->id)
user))
data-placement="top"
title="{{__('This creator cannot earn money yet')}}"
@else
data-placement="top"
title="{{__('Send a tip')}}"
data-toggle="modal"
data-target="#checkout-center"
data-type="tip"
data-first-name="{{Auth::user()->first_name}}"
data-last-name="{{Auth::user()->last_name}}"
data-billing-address="{{Auth::user()->billing_address}}"
data-country="{{Auth::user()->country}}"
data-city="{{Auth::user()->city}}"
data-state="{{Auth::user()->state}}"
data-postcode="{{Auth::user()->postcode}}"
data-available-credit="{{Auth::user()->wallet->total}}"
data-username="{{$stream->user->username}}"
data-name="{{$stream->user->name}}"
data-avatar="{{$stream->user->avatar}}"
data-recipient-id="{{$stream->user->id}}"
data-stream-id="{{$stream->id}}"
@endif
>
@include('elements.icon',['icon'=>'cash-outline'])
@endif
@if($stream->user->id === Auth::user()->id)
@endif
@endif
@include('elements.message-alert',['classes'=>'py-3'])
@if($stream->canWatchStream)
@if($stream->messages->count())
@foreach($stream->messages as $message)
@include('elements.streams.stream-chat-message',['message'=>$message, 'streamOwnerId' => $stream->user_id])
@endforeach
@endif
@if(!isset($streamEnded))
@endif
@else
🔒 {{__("Chat locked. Unlock the stream to see the messages.")}}
@endif