{{-- TENDRA --}} @extends(view_path('master')) @section('additional_head_tags') @endsection @section('body')
@if(!route_is('home.credits'))
@endif @if($errors->any()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif @if(route_is('home.purchases'))
@foreach($transactions as $transaction) @if(count($transaction->items)) @endif @endforeach
{{ __('Order ID') }} {{ __('Items') }} {{ __('Status') }} {{ __('Date') }} {{ __('Links') }}
{{ $transaction->reference_id }} {{ count($transaction->items) }}
{{ __(ucfirst($transaction->status)) }}
{{ $transaction->updated_at->format('Y-m-d H:i:s') }}
@foreach($transaction->items as $item) @endforeach
{{ $item->name }} @if($item->files > 1) @else {{ __('Download') }} @endif
  @if($transactions->hasPages()) {{ $transactions->appends(request()->query())->onEachSide(1)->links() }} {{ $transactions->appends(request()->query())->links('vendor.pagination.simple-semantic-ui') }} @endif
@elseif(route_is('home.favorites'))
@elseif(route_is('home.user_subscriptions') && config('app.subscriptions.enabled'))
@if($user_subscriptions->count())
{{ __('Name') }}
{{ __('Starts at') }}
{{ __('Expires at') }}
{{ __('Remaining days') }}
{{ __('Downloads') }}
{{ __('Daily Downloads') }}
{{ __('Status') }}
@foreach($user_subscriptions as $user_subscription)
{{ $user_subscription->name }}
{{ format_date($user_subscription->starts_at, 'jS M Y \a\\t H:i') }}
@if($user_subscription->ends_at) {{ format_date($user_subscription->ends_at, 'jS M Y \a\\t H:i') }} @else {{ __('Unlimited') }} @endif
@if($user_subscription->ends_at) {{ $user_subscription->remaining_days }} @else {{ __('Unlimited') }} @endif
@if($user_subscription->limit_downloads > 0) {{ "{$user_subscription->downloads}/{$user_subscription->limit_downloads}" }} @else {{ __('Unlimited') }} @endif
@if($user_subscription->limit_downloads_per_day > 0) {{ "{$user_subscription->daily_downloads}/{$user_subscription->limit_downloads_per_day}" }} @else {{ __('Unlimited') }} @endif
@if($user_subscription->expired)
{{ __('Expired') }}
@elseif(!$user_subscription->payment_status)
{{ __('Pending') }}
@else
{{ __('Active') }}
@endif
@endforeach
@endif
@elseif(route_is('home.notifications'))
@if($notifications->count()) @if($notifications->hasPages())
{{ $notifications->onEachSide(1)->links() }} {{ $notifications->links('vendor.pagination.simple-semantic-ui') }} @endif @endif
@elseif(route_is('home.profile'))
@csrf
avatar ?? 'default.webp').'?v='.time()) }}">
{{ $user->name ?? null }}
{{ $user->country ?? null}}
{{ format_date($user->created_at, 'd F Y') }}
@if(config('affiliate.enabled') && mb_strlen($user->affiliate_name))
@endif

{{ __('Change password') }}

@elseif(route_is('home.invoices'))
@if($invoices)
@foreach($invoices ?? [] as $invoice) @if(config('app.invoice.template', 1) == 1) @else @endif @endforeach
{{ __('Reference') }} {{ __('Date') }} {{ __('Amount') }} {{ __('Export PDF') }}
{{ $invoice->reference_id }} {{ $invoice->created_at }} {{ $invoice->currency .' '. $invoice->amount }}
@if($invoices->hasPages()) {{ $invoices->appends(request()->query())->onEachSide(1)->links() }} {{ $invoices->appends(request()->query())->links('vendor.pagination.simple-semantic-ui') }} @endif
@csrf
@endif
@elseif(route_is('home.user_prepaid_credits') && config('app.prepaid_credits.enabled'))
@if($user_prepaid_credits->count())
@foreach($user_prepaid_credits as $prepaid_credit) @endforeach
{{ __('Name') }} {{ __('Amount') }} {{ __('Credits') }} {{ __('Expires at') }} {{ __('Discount') }} {{ __('Status') }}
{{ __($prepaid_credit->name) }} {{ price($prepaid_credit->amount, 0, 1, 2, 'code', 0, null) }} {{ price($prepaid_credit->credits, 0, 1, 2, 'code', 0, null) }} {{ $prepaid_credit->expires_at ?? '-' }} {{ $prepaid_credit->discount ? "{$prepaid_credit->discount}%" : '-' }} @if($prepaid_credit->expired)
{{ __('Expired') }}
@else @if($prepaid_credit->credits == 0)
{{ __('Spent') }}
@elseif($prepaid_credit->status == 'paid')
{{ __('Active') }}
@else
{{ __('Pending') }}
@endif @endif
{{ $user_prepaid_credits->onEachSide(1)->links() }} {{ $user_prepaid_credits->links('vendor.pagination.simple-semantic-ui') }}
@endif
@elseif(route_is('home.user_coupons'))
{{ __('Coupons') }}
{{ __('Code') }}
{{ __('Value') }}
{{ __('Applicable For') }}
{{ __('Usable once') }}
{{ __('Starts at') }}
{{ __('Expires at') }}
@foreach($coupons ?? [] as $coupon)
{{ $coupon->code }}
{{ $coupon->is_percentage ? ("%{$coupon->value} ".__('OFF')) : price($coupon->value, false) }}
{{ $coupon->products_ids ? __('Products') : ($coupon->subscriptions_ids ? __('Subscriptions') : __('All')) }}
{{ $coupon->once ? __('Yes') : __('No') }}
{{ $coupon->starts_at }}
{{ $coupon->expires_at }}
@endforeach
@if($coupons->hasPages()) {{ $coupons->onEachSide(1)->links() }} {{ $coupons->links('vendor.pagination.simple-semantic-ui') }} @endif
@elseif(route_is('home.credits') && config('app.prepaid_credits.enabled'))
{{ __('Earnings & Credits') }}
{{ __('Purchased items') }}
{{ $purchased_items }}
{{ __('Prepaid credits') }}
{{ price($prepaid_credits, 0) }}
{{ __('Affiliate earnings') }}
{{ price($affiliate_credits, 0) }}
{{ __('Completed orders') }}
{{ $completed_orders }}
{{ __('Referred users') }}
{{ $referred_users }}
{{ __('Cashed out earnings') }}
{{ price($cashed_out_earnings, 0) }}
{{ __('Spent credits') }}
{{ price($spent_credits, 0) }}
{{ __('Available credits') }}
{{ price(user_credits(), 0) }}
{{ __('Affiliate earnings') }}
{{ __('Monthly affiliate earnings evolution') }}
@foreach($earnings_steps as $step)
{{ ceil($step) }}
@for($k = 0; $k <= (count($earnings_per_day) - 1); $k++)
@if($step == 0) @endif
@endfor
@endforeach
-
@for($day = 1; $day <= count($earnings_per_day); $day++)
{{ $day }}
@endfor
{{ __('Completed orders') }}
{{ __('Orders completed with your affiliate link') }}
@foreach($orders as $order) @endforeach @if($orders->hasPages()) @endif
{{ __('Reference') }} {{ __('Referee name') }} {{ __('Order amount') }} {{ __('Earnings') }} {{ __('Purchased items') }} {{ __('Order status') }} {{ __('Date') }}
{{ $order->reference_id }} {{ $order->referee_name }} {{ price($order->amount, 0) }} {{ price($order->earnings, 0) }} @if($order->type == 'subscription')
{{ __('Subscription - :name', ['name' => $order->items]) }}
@else @foreach(explode(',', $order->items) as $item)
{{ shorten_str($item, 50) }}
@endforeach @endif
@if($order->refunded)
{{ __('Reversed') }}
@elseif($order->confirmed == '0' || $order->status == 'pending')
{{ __('Pending') }}
@elseif($order->status == 'paid')
{{ __('Confirmed') }}
@endif
{{ $order->updated_at }}
{{ $orders->appends(request()->query())->onEachSide(1)->links() }} {{ $orders->appends(request()->query())->links('vendor.pagination.simple-semantic-ui') }}
@endif
@endsection