@extends('admin.layout') @section('custom-style') @endsection @section('content')

My Earnings

@if ($errors->any())
@foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
    @endif @if(\Session::has('error'))
  • {!! \Session::get('error') !!}
  • @endif @if(\Session::has('success'))
  • {!! \Session::get('success') !!}
  • @endif

    Your earnings as of {{$yesterday_date}}

    Estimated Earnings

    Total month's earnings
    @php $monthly_revenue_total = optional($monthly_revenue)->total ?? 0; $truncated_monthly_revenue = floor($monthly_revenue_total * 100) / 100; @endphp ${{ number_format($truncated_monthly_revenue, 2, '.', ',') }}
    Regular videos earnings
    @php $monthly_regular_videos_total = optional($monthly_revenue)->regular_videos_ppv_revenue + optional($monthly_revenue)->regular_videos_ad_revenue ?? 0; $truncated_monthly_regular_videos_total = floor($monthly_regular_videos_total * 100) / 100; @endphp ${{ number_format($truncated_monthly_regular_videos_total, 2, '.', ',') }}
    ppv @php $monthly_regular_videos_ppv_total = optional($monthly_revenue)->regular_videos_ppv_revenue ?? 0; $truncated_regular_videos_ppv_total = floor($monthly_regular_videos_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_regular_videos_ppv_total, 2, '.', ',') }} adv @php $monthly_regular_videos_ad_total = optional($monthly_revenue)->regular_videos_ad_revenue ?? 0; $truncated_regular_videos_ad_total = floor($monthly_regular_videos_ad_total * 100) / 100; @endphp ${{ number_format($truncated_regular_videos_ad_total, 2, '.', ',') }}
    Live stream videos earnings
    @php $monthly_live_stream_videos_total = optional($monthly_revenue)->live_stream_videos_ppv_revenue + optional($monthly_revenue)->live_stream_videos_ad_revenue ?? 0; $truncated_monthly_live_stream_videos_total = floor($monthly_live_stream_videos_total * 100) / 100; @endphp ${{ number_format($truncated_monthly_live_stream_videos_total, 2, '.', ',') }}
    ppv @php $monthly_live_stream_videos_ppv_total = optional($monthly_revenue)->live_stream_videos_ppv_revenue ?? 0; $truncated_live_stream_videos_ppv_total = floor($monthly_live_stream_videos_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_live_stream_videos_ppv_total, 2, '.', ',') }} adv @php $monthly_live_stream_videos_ad_total = optional($monthly_revenue)->live_stream_videos_ad_revenue ?? 0; $truncated_live_stream_videos_ad_total = floor($monthly_live_stream_videos_ad_total * 100) / 100; @endphp ${{ number_format($truncated_live_stream_videos_ad_total, 2, '.', ',') }}
    Live stream events earnings
    @php $monthly_live_stream_events_total = optional($monthly_revenue)->live_stream_events_ppv_revenue + optional($monthly_revenue)->live_stream_events_ad_revenue ?? 0; $truncated_monthly_live_stream_events_total = floor($monthly_live_stream_events_total * 100) / 100; @endphp ${{ number_format($truncated_monthly_live_stream_videos_total, 2, '.', ',') }}
    ppv @php $monthly_live_stream_events_ppv_total = optional($monthly_revenue)->live_stream_events_ppv_revenue ?? 0; $truncated_live_stream_events_ppv_total = floor($monthly_live_stream_events_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_live_stream_events_ppv_total, 2, '.', ',') }} adv @php $monthly_live_stream_events_ad_total = optional($monthly_revenue)->live_stream_videos_events_ad_revenue ?? 0; $truncated_live_stream_events_ad_total = floor($monthly_live_stream_events_ad_total * 100) / 100; @endphp ${{ number_format($truncated_live_stream_events_ad_total, 2, '.', ',') }}

    Balance

    @php $setting = get_setting('withdrawable_balance_threshold'); $earnings_withdrawable_threshold = $setting ? (float) $setting->value : 1; @endphp @if (optional($client_balance)->balance >= $earnings_withdrawable_threshold) @endif
    Withdrawable Balance
    @php $client_balance = optional($client_balance)->balance ?? 0; $truncated_client_balance = floor($client_balance * 100) / 100; @endphp ${{number_format($truncated_client_balance, 2, '.', ',') }}

    Paid Out

    Total Paid Out
    @php $client_total_withdrawals = optional($client_balance)->total_withdrawals ?? 0; $truncated_total_withdrawals = floor($client_total_withdrawals * 100) / 100; @endphp ${{number_format( $truncated_total_withdrawals, 2, '.', ',') }}

    Lifetime Earnings

    Total lifetime's earnings
    @php $lifetime_earnings = optional($lifetime_revenue)->total_revenue ?? 0; $truncated_lifetime_earnings = floor($lifetime_earnings * 100) / 100; @endphp ${{ number_format($truncated_lifetime_earnings, 2, '.', ',') }}
    Regular videos earnings
    @php $lifetime_regular_videos_total = optional($lifetime_revenue)->total_regular_videos_ppv_revenue + optional($lifetime_revenue)->monthly_total_regular_videos_ppv_revenue + optional($lifetime_revenue)->total_regular_videos_ad_revenue + optional($lifetime_revenue)->monthly_total_regular_videos_ad_revenue ?? 0; $truncated_lifetime_regular_videos_total = floor($lifetime_regular_videos_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_regular_videos_total, 2, '.', ',') }}
    ppv @php $lifetime_regular_videos_ppv_total = optional($lifetime_revenue)->total_regular_videos_ppv_revenue + optional($lifetime_revenue)->monthly_total_regular_videos_ppv_revenue ?? 0; $truncated_lifetime_regular_videos_ppv_total = floor($lifetime_regular_videos_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_regular_videos_ppv_total, 2, '.', ',') }} adv @php $lifetime_regular_videos_ad_total = optional($lifetime_revenue)->total_regular_videos_ad_revenue + optional($lifetime_revenue)->monthly_total_regular_videos_ad_revenue ?? 0; $truncated_lifetime_regular_videos_ad_total = floor($lifetime_regular_videos_ad_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_regular_videos_ad_total, 2, '.', ',') }}
    Live stream videos earnings
    @php $lifetime_live_stream_videos_total = optional($lifetime_revenue)->total_live_stream_videos_ppv_revenue + optional($lifetime_revenue)->monthly_total_live_stream_videos_ppv_revenue + optional($lifetime_revenue)->total_live_stream_videos_ad_revenue + optional($lifetime_revenue)->monthly_total_live_stream_videos_ad_revenue ?? 0; $truncated_lifetime_live_stream_videos_total = floor($lifetime_live_stream_videos_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_videos_total, 2, '.', ',') }}
    ppv @php $lifetime_live_stream_videos_ppv_total = optional($lifetime_revenue)->total_live_stream_videos_ppv_revenue + optional($lifetime_revenue)->monthly_total_live_stream_videos_ppv_revenue ?? 0; $truncated_lifetime_live_stream_videos_ppv_total = floor($lifetime_live_stream_videos_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_videos_ppv_total, 2, '.', ',') }} adv @php $lifetime_live_stream_videos_ad_total = optional($lifetime_revenue)->total_live_stream_videos_ad_revenue + optional($lifetime_revenue)->monthly_total_live_stream_videos_ad_revenue ?? 0; $truncated_lifetime_live_stream_videos_ad_total = floor($lifetime_live_stream_videos_ad_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_videos_ad_total, 2, '.', ',') }}
    Live stream events earnings
    @php $lifetime_live_stream_events_total = optional($lifetime_revenue)->total_live_stream_events_ppv_revenue + optional($lifetime_revenue)->monthly_total_live_stream_events_ppv_revenue + optional($lifetime_revenue)->total_live_stream_events_ad_revenue + optional($lifetime_revenue)->monthly_total_live_stream_events_ad_revenue ?? 0; $truncated_lifetime_live_stream_events_total = floor($lifetime_live_stream_events_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_videos_total, 2, '.', ',') }}
    ppv @php $lifetime_live_stream_events_ppv_total = optional($lifetime_revenue)->total_live_stream_events_ppv_revenue + optional($lifetime_revenue)->monthly_total_live_stream_events_ppv_revenue ?? 0; $truncated_lifetime_live_stream_events_ppv_total = floor($lifetime_live_stream_events_ppv_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_events_ppv_total, 2, '.', ',') }} adv @php $lifetime_live_stream_events_ad_total = optional($lifetime_revenue)->total_live_stream_events_ad_revenue + optional($lifetime_revenue)->monthly_total_live_stream_events_ad_revenue ?? 0; $truncated_lifetime_live_stream_events_ad_total = floor($lifetime_live_stream_events_ad_total * 100) / 100; @endphp ${{ number_format($truncated_lifetime_live_stream_events_ad_total, 2, '.', ',') }}

    Last Withdrawal

    @if(isset($last_withdrawal)) @endif
    S.No. Amount Withdrawal Date Status
    1 {{ $last_withdrawal->amount}} {{ $last_withdrawal->date->format('d M, Y')}} {{ ucfirst($last_withdrawal->status)}}
    @endsection @section('custom-scripts') @endsection