@php
if (!isset($author)) {
$author = auth()->user();
}
@endphp
@php
$commentsCount = $author->comments()->where('review_id', Status::NO)->where('parent_id', Status::NO)->count();
$reivewCount = $author->reviews->count();
$refundItemsCount = $author->refundRequests->where('status', Status::NO)->count();
$submittedRefundItemsCount = $author->submittedRefundRequests->where('status', Status::NO)->count();
$refundItemsCount += $submittedRefundItemsCount;
$hiddenItems = $author
->products()
->whereIn('status', [Status::PRODUCT_PENDING, Status::PRODUCT_SOFT_REJECTED, Status::PRODUCT_DOWN])
->count();
$requestUsername = request()->username;
$isAuthUser = auth()->check();
$user = auth()->user();
$referralCount = $author->referrals()->count();
@endphp
@if ($isAuthUser && $user->username == $author->username)
@endif
@auth
@if ($isAuthUser && $user->username == $author->username)
@else
@endif
@else
@endauth
@if ($author->is_author)
@endif
@if ($isAuthUser && $user->username == $author->username)
@endif
@if ($isAuthUser && $author->isAuthor() && $user->username == $author->username)
@if (gs('referral'))
@endif
@php
$campaign = App\Models\Campaign::active()->latest()->first();
@endphp
@if ($campaign)
@endif
@endif
@push('script')
{{-- --}}
@endpush