@extends('layouts.user-no-nav') @section('page_title', $stream->name) @section('styles') {!! Minify::stylesheet([ '/libs/dropzone/dist/dropzone.css', '/css/pages/checkout.css', '/css/pages/stream.css', ])->withFullUrl() !!} @stop @section('scripts') {!! Minify::javascript([ '/libs/dropzone/dist/dropzone.js', '/js/FileUpload.js', '/js/pages/stream.js', '/libs/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.min.js', '/libs/videojs-http-source-selector/dist/videojs-http-source-selector.min.js', '/libs/pusher-js-auth/lib/pusher-auth.js', '/js/pages/checkout.js', ])->withFullUrl() !!} @stop @section('content')
{{$stream->name}}
@if(!isset($streamEnded)) @if(StreamsHelper::getUserInProgressStream()) @endif @endif
{{$stream->user->username}}
@if(!isset($streamEnded)) 0 {{__("Watching")}} • {{__("Started streaming")}} {{$stream->created_at->diffForHumans(null,false,true)}}. @else {{__('Stream ended :time time ago',['time'=>$stream->ended_at->diffForHumans(null,false,true)])}} @endif
@if(!isset($streamEnded))
@if(isset($subLocked) && $stream->user->id !== Auth::user()->id)
@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
@if($stream->canWatchStream) @else @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($stream->status == 'in-progress')
👋 {{__('There are no messages yet.')}}  {{__("Say 'Hi!' to someone!")}}
@else
⏲ {{__("Stream ended, can't add comments.")}}
@endif
@if(!isset($streamEnded))
@endif @else
🔒 {{__("Chat locked. Unlock the stream to see the messages.")}}
@endif
@include('elements.checkout.checkout-box') @stop