@if (optional($form)->id && $isForm === true) {{ __('common.edit') }} - {{ optional($form)->name }} @elseif(optional($form)->id && $isForm === false) {{ __('common.show') }} - {{ optional($form)->name }} @else {{ __('common.create') }} @endif

Edit Profile
@if ($isForm === true) @csrf @endif @if (optional($form)->id) @method('PUT') @endif

{{ __('common.user_information') }}

@include('includes.upload', [ 'field_label' => __('common.logo'), 'field_name' => 'business_logo', 'field_value' => optional(optional($form)->vendor)->businessLogoSrc ?? '', 'default_value' => \App\Helpers\ProfileHelper::photoUrl( optional($form) ), 'title' => optional($form)->vendor->business_name ?? '', 'isForm' => $isForm, ])
@if ($isForm === true) @include('includes.invalid', [ 'field' => 'business_name', ]) @else
{{ optional($form)->vendor->business_name }}
@endif
{{--
@if ($isForm === true) @include('includes.invalid', ['field'=> 'email']) @else
{{optional($form)->email}}
@endif
--}} {{--
@if ($isForm === true)
@include('includes.invalid', [ 'field' => 'dialing_code', ])
@include('includes.invalid', [ 'field' => 'phone', ])
@else
@if (optional($form)->vendor->country_code == 'US') {{ app\Helpers\Helper::formattingUS('+1' . optional($form)->vendor->business_mobile) ?? optional($form)->vendor->business_mobile }}

@elseif(optional($form)->vendor->country_code == 'BR') {{ app\Helpers\Helper::formattingBR('+5' . optional($form)->vendor->business_mobile) ?? optional($form)->vendor->business_mobile }}

@else {{ optional($form)->vendor->business_mobile }} @endif
@endif
--}}
@if ($isForm === true) @include('includes.invalid', [ 'field' => 'owner_name', ]) @else
{{ optional(optional($form)->vendor)->owner_name }}
@endif
@if ($isForm === true)

@include('includes.invalid', ['field' => 'gst_no']) @else
{{ optional(optional($form)->vendor)->gst_no }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'type']) @else
{{ optional($form)->vendor->type }}
@endif
@if ($isForm === true) @include('includes.invalid', [ 'field' => 'min_order', ]) @else
{{ optional(optional($form)->vendor)->min_order }}
@endif
{{--
@if ($isForm === true) @include('includes.invalid', ['field' => 'pin']) @else
{{ optional(optional($form)->vendor)->pin }}
@endif
--}} {{--
@if ($isForm === true) @include('includes.invalid', ['field' => 'company_document']) @else
{{ optional(optional($form)->vendor)->company_document }}
@endif
--}}
{{-- @include('includes.user.address', [ 'address' => optional($form), 'options' => $options, 'isForm' => $isForm, ]) --}}

{{ __('common.profile_information') }}

@if ($isForm === true) @include('includes.invalid', ['field' => 'business_type']) @else
{{ optional($form)->vendor->business_type }}
@endif
{{--
@if ($isForm === true) @include('includes.invalid', ['field'=> 'category_id']) @else
{{optional($form)->category->name??""}}
@endif
--}} {{--
@if ($isForm === true) @include('includes.invalid', ['field'=> 'sub_category']) @else
{{optional($form)->sub_category->name??""}}
@endif
--}} {{--
--}} {{--
--}} {{-- --}} {{-- @if ($isForm === true) --}} {{-- --}} {{-- @include('includes.invalid', ['field'=> 'address']) --}} {{-- @else --}} {{--
--}} {{-- {{optional(optional($form)->vendor)->address}} --}} {{--
--}} {{-- @endif --}} {{--
--}} {{--
--}}
@if ($isForm === true) @include('includes.invalid', ['field' => 'facebook_link']) @else
{{ optional(optional($form)->vendor)->facebook_link }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'whatsapp_link']) @else
{{ optional(optional($form)->vendor)->whatsapp_link }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'twitter_link']) @else
{{ optional(optional($form)->vendor)->twitter_link }}
@endif

{{ __('common.other_information') }}

@include('includes.upload', [ 'field_label' => __('common.cover_image'), 'field_name' => 'cover_image', 'field_value' => optional(optional($form)->vendor)->cover ?? '', 'default_value' => \App\Helpers\ProfileHelper::photoUrl(optional($form)), 'title' => optional($form)->name ?? '', 'isForm' => $isForm, ])
{{-- @include('includes.upload',['field_label' => __('common.kyc_image'),'field_name' => 'kyc_image', 'field_value' => optional(optional($form)->vendor)->ImageSrc ?? '', 'default_value' => \App\Helpers\ProfileHelper::photoUrl(optional($form)), 'title' => optional($form)->name??"", 'isForm' => $isForm]) --}}

{{ __('common.bank_detail') }}

@if ($isForm === true) @include('includes.invalid', ['field' => 'twitter_link']) @else
{{ $bankdetails->account ?? '' }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'account_holder_name']) @else
{{ $bankdetails->name ?? '' }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'bank_name']) @else
{{ $bankdetails->bank_name ?? '' }}
@endif
@if ($isForm === true) @include('includes.invalid', ['field' => 'twitter_link']) @else
{{ $bankdetails->ifsc ?? '' }}
@endif
@if ($isForm === false)

{{ __('common.package_information') }}

{{ optional(optional($form)->package)->package_title }}
{{ optional(optional($form)->package)->package_duration }}
{{ optional(optional($form)->package)->total_products }}
{{ optional(optional($form)->package)->package_price }}
{{ optional($form)->package_expire }}
@endif
@push('body.end') @endpush