@php $version = $basicInfo->theme_version; @endphp @extends("frontend.layouts.layout-v$version") @section('pageHeading') {{ $vendor->username }} @endsection @section('metaKeywords') {{ $vendor->username }}, {{ !request()->filled('admin') ? @$vendorInfo->name : '' }} @endsection @section('metaDescription') {{ !request()->filled('admin') ? @$vendorInfo->details : '' }} @endsection @section('content') @includeIf('frontend.partials.breadcrumb', [ 'breadcrumb' => $bgImg->breadcrumb, 'title' => !empty($pageHeading) ? $pageHeading->vendor_page_title : __('Vendors'), 'subtitle' => !empty($pageHeading) ? $pageHeading->vendor_page_title : __('Vendors'), ])
@if (request()->input('admin') == true) @elseif ($vendor->photo != null) @else @endif
{{-- {{ $vendor->name }} --}}

{{ request()->input('admin') == true ? $vendor->adminInfo?->first_name . ' ' . $vendor->adminInfo?->last_name : @$vendorInfo->name }}

    @if ($vendor->show_phone_number == 1)
  • {{ __('Phone') }}:
  • @endif @if ($vendor->show_email_addresss == 1)
  • {{ __('Email') }}:
  • @endif @if (request()->input('admin') != true) @if (!is_null(@$vendorInfo->city))
  • {{ __('City') }}:
    {{ @$vendorInfo->city }}
  • @endif @if (!is_null(@$vendorInfo->state))
  • {{ __('State') }}:
    {{ @$vendorInfo->state }}
  • @endif @if (!is_null(@$vendorInfo->country))
  • {{ __('Country') . ':' }}
    {{ @$vendorInfo->country }}
  • @endif @endif
  • @if (request()->input('admin') == true) @if ($vendor->address != null)
    {{ __('Address') . ' : ' }}
    {{ $vendor->address }}
    @endif @else @if (@$vendorInfo->address != null)
    {{ __('Address') . ' : ' }}
    {{ @$vendorInfo->address }}
    @endif @endif
  • @if (request()->input('admin') != true)
  • {{ __('Member since') . ':' }}
    {{ \Carbon\Carbon::parse($vendor->created_at)->format('F Y') }}
  • @endif
@if ($vendor->show_email_addresss == 1) {{ __('Send Email') }} @endif @if ($vendor->show_phone_number == 1) {{ __('Call Now') }} @endif
@if (request()->input('admin') == true) @if (!is_null($vendor->adminInfo?->details))

{{ __('About') }}

{{ $vendor->adminInfo?->details }}

@endif @else @if (!is_null(@$vendorInfo->details))

{{ __('About') }}

{{ @$vendorInfo->details }}

@endif @endif @if($vendor->roleBuilder())

{{ __(@$vendor->roleBuilder() ? 'My Properties' : 'My Services') . ' (' . count($all_properties) . ')' }}

@foreach ($all_properties as $property) @endforeach
@foreach ($categories as $category) @php if (request()->has('admin')) { $vendorId = 0; } else { $vendorId = $vendor->id; } $category_id = $category->id; $Cproperties = App\Models\Property\Property::join( 'property_contents', 'property_contents.property_id', 'properties.id', ) ->whereIn('properties.vendor_id', $vendorIds) ->with([ 'propertyContent' => function ($q) use ($language) { $q->where('language_id', $language->id); }, ]) ->where('property_contents.language_id', $language->id) ->where([['properties.status', 1], ['properties.approve_status', 1]]) ->orderBy('properties.id', 'desc') ->select('properties.*', 'property_contents.language_id') ->get(); @endphp @if (count($Cproperties) > 0)
@foreach ($Cproperties as $property) @if ($property->category_id == $category->id) @endif @endforeach
@endif @endforeach
@endif {{-- @if (count($agents) > 0)

{{ __('My Agents') . ' (' . count($agents) . ')' }}

@foreach ($agents as $agent)
agent
{{ __('Real Estate') }}
{{ count($agent->properties->where('approve_status', 1)) }} {{ __('Properties') }} | {{ count($agent->projects->where('approve_status', 1)) }} {{ __('Projects') }}

{{ $agent->agent_info?->first_name . ' ' . $agent->agent_info?->last_name }}

{{ __('View Profile') }}
@endforeach
@endif --}}
@endsection