@if (auth()->user()->isCompanySeller())
@if ($errors->has('company_name'))
{{ $errors->first('company_name') }}
@endif
@else
@if ($errors->has('first_name'))
{{ $errors->first('first_name') }}
@endif
@if ($errors->has('last_name'))
{{ $errors->first('last_name') }}
@endif
@endif
@if ( !empty($company))
@if (($company->status != \App\Models\CompanyDetail::IS_APPROVED))
@endif
@else
@endif
@if (!auth()->user()->isCompanySeller())
@if ($errors->has('nick_name'))
{{ $errors->first('nick_name') }}
@endif
@if(empty(auth()->user()->nick_name))
@if (!empty($company))
@if (($company->status != \App\Models\CompanyDetail::IS_APPROVED))
@endif
@else
@endif
@endif
nick_name) ? "" : "disabled"}}
{{($userObject->show_nick_name === 1) ? "checked" : ""}}>
@endif
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@php
$verificationTimeOut = auth()->user()->phone_verification_timeout;
$timestamp = strtotime($verificationTimeOut) + 60*60;
$time = date('H:i', $timestamp);
$time1 = date('Y-m-d H:i', $timestamp);
$mins = (strtotime($time) - strtotime(date('H:i'))) / 60;
@endphp
@if(date('Y-m-d H:i') < $time1)
@else
@endif
@if ($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
@if (!empty($company))
@if (($company->status != \App\Models\CompanyDetail::IS_APPROVED))
@endif
@else
@endif
@php
$list = \App\Models\User::countryListWithLanguage();
@endphp
@if ($errors->has('default_language'))
{{ $errors->first('default_language') }}
@endif
@if (!empty($company))
@if (($company->status != \App\Models\CompanyDetail::IS_APPROVED))
@endif
@else
@endif
@php
if (!empty($company) && ($company->status == \App\Models\CompanyDetail::IS_APPROVED)){
$timezone= $userObject->getTimezone();
if (!empty($company->verified_at) && Carbon\Carbon::hasFormat($company->verified_at, 'Y-m-d H:i:s')) {
$startdate = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $company->verified_at, 'UTC');
$startdate->setTimezone($timezone);
$startdate = date('Y-m-d / H:i:s', strtotime($startdate));
$endDated = Date('Y-m-d H:i:s', strtotime($company->verified_at . "+1 year"));
$endDates = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $endDated, 'UTC');
$endDates->setTimezone($timezone);
$endDates = date('Y-m-d / H:i:s', strtotime($endDates));
} else {
$startdate = null;
$endDates = null;
}
// $startdate = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $company->verified_at, 'UTC');
// $startdate->setTimezone($timezone);
// $startdate = date('Y-m-d / H:i:s', strtotime($startdate));
// $endDated = Date('Y-m-d H:i:s', strtotime($company->verified_at . "+1 year"));
// $endDates = Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $endDated, 'UTC');
// $endDates->setTimezone($timezone);
// $endDates = date('Y-m-d / H:i:s', strtotime($endDates));
}
$paymentStatusPending = Cache::has('is_payment_status_pending');
@endphp
@if ((empty($company) || ($company->status != \App\Models\CompanyDetail::IS_APPROVED)) )
@if ($userObject->getVerifyCount->count() == '0')
{{__("words.Become a Verified Seller")}}
{{-- @if (!empty($company) && ($company->status == \App\Models\CompanyDetail::STATUS_SHUFTI_PRO_PENDING))
Verify Now
@endif --}}
@else
{{__("words.Verified Seller")}} {{$userObject->getVerifyCount->count()}} {{__("words.Year")}}
@endif
@if (!empty($company) && ($company->status == \App\Models\CompanyDetail::IS_APPROVED))
{{__("words.Starting Date")}} : {{$startdate}}
{{__("words.End date")}} : {{$endDates}}
@endif
@if (!empty($company) && (($company->status == \App\Models\CompanyDetail::STATUS_SHUFTI_PRO_COMPANY_APPROVE)))
{{__("words.Note")}}:
Your personal verification has been successfully completed. It takes us about 72 hours to confirm ownership of your company.
Once the company verification is confirmed, we will send you a notification to your email and you will automatically become a Verified Seller.
@endif
{{__("words.Note")}}:
{{__("words.This information is not visible to side users.")}} Ambayo.com {{__("words.needs this information to verify your")}} {{$userObject->isCompanySeller() ? __("words.company"):__("words.profile") }}.
@if (!empty($company) && ($company->status == \App\Models\CompanyDetail::STATUS_PAYMENT_COMPLETED || $company->status == \App\Models\CompanyDetail::APPLY_FOR_CHECKING || $company->status == \App\Models\CompanyDetail::CHECKED || $company->status == \App\Models\CompanyDetail::EVERYTHING_IS_OK))
@if (auth()->user()->isCompanySeller())
@if ($company->document_number && empty($company->br_file))
{{__("words.Verify Now")}}
@elseif(!empty($company->br_file))
{{__("words.Verify Now")}}
@else
{{__("words.Verify Now")}}
@endif
@else
{{__("words.Verify Now")}}
@endif
@elseif (!empty($company) && (($company->status == \App\Models\CompanyDetail::STATE_PENDING) || ($company->status ==
\App\Models\CompanyDetail::STATUS_SHUFTI_PRO_PENDING) || ($company->status == \App\Models\CompanyDetail::STATUS_SHUFTI_PRO_CANCEL)))
{{__("words.Verify Now")}}
@elseif (!empty($company) && ($company->status == \App\Models\CompanyDetail::REJECT))
@php
$companyId = $company->id;
$modalUrl = route("getRejectionReasonModal");
@endphp
@elseif (!empty($company) && (($company->status ==
\App\Models\CompanyDetail::STATUS_PAYMENT_PENDING) || ($company->status ==
\App\Models\CompanyDetail::STATUS_PAYMENT_UNDERPAYMENT) || ($company->status ==
\App\Models\CompanyDetail::STATUS_PAYMENT_OVERPAYMENT)))
{{__("words.Verify Now")}}
@elseif (!empty($company) && ($company->status == \App\Models\CompanyDetail::IS_APPROVED))
Cancel Membership
@elseif (!empty($company) && (($company->status == \App\Models\CompanyDetail::REPORTED) || ($company->status == \App\Models\CompanyDetail::STATUS_SHUFTI_PRO_COMPANY_APPROVE)))
{{__("words.Pending")}}
@elseif (!empty($company) && ($company->status == \App\Models\CompanyDetail::STATUS_ALLOW_TRY_AGAIN))
@php
$companyId = $company->id
@endphp
{{__("words.Try Again")}}
@else
@if (!empty($paymentStatusPending))
Payment Status Pending
@else
{{__("words.Verify Now")}}
@endif
@endif
@include('user.partials.verifyModal')
@endif
{{--
--}}
@if ((!empty($company) && (($company->status == \App\Models\CompanyDetail::IS_APPROVED))))
@php
$verifyDate = $company->verified_at;
$nextYear = Carbon\Carbon::parse($verifyDate)->addYear();
$currentDays=Carbon\Carbon::now()->diffInDays($nextYear);
@endphp