@extends('admin.admin_dashboard') @section('admin')

{{$user['id']}} - Associate Profile

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Associate User
{{-- {{$user}} --}}

Name: {{$user['name']}}

Email: {{$user['email']}}

Phone: {{$user['mobile']}}

Gender: {{$user['gender']}}

Associate Profile
{{-- @if ($user->associate()->exists()) @endif --}}
@if ($user->associate()->exists())
@if ($user->associate['profile_image'] != null) @endif

Category: {{$user->associate->category['alt_name'] ?? '-'}}

Sub-Category: @foreach ($user->associate->subCategoriesArray() as $item) {{$item['slug']}} @endforeach {{-- {{$user->associate->subCategoriesArray()}} --}}

Name: {{$user->associate['full_name'] ?? '-'}}

Email: {{$user->associate['email'] ?? '-'}}

Phone: {{$user->associate['phone'] ?? '-'}}

Business Name: {{$user->associate['business_name'] ?? '-'}}

About: {{$user->associate['about_company'] ?? '-'}}

@if ($user->associate->location()->exists())

Location: {{$user->associate->location['name']}}, {{$user->associate->location['district_name']}}, {{$user->associate->location['state_name']}}, {{$user->associate->location['pincode']}}

@else

Location -

@endif

Address: {{$user->associate['address'] ?? '-'}}

Area: {{$user->associate['area'] ?? '-'}}

Area Of Service: {{$user->associate['area_of_service'] ?? '-'}}

@else
@csrf
    @endif {{-- {{$user->associate}} --}}
    @if (request()->user()->role != 'sales')
    Wallet Points

    Current Wallet Balance: {{$user->getWallet['amount'] ?? ''}}

    @if ($user->getWallet()->exists() && ($user->getWallet['amount'] > 0)) Deduct Wallet Point @endif Add Wallet Point
    {{--
    Wallet Transactions
    {{$user->getWallet}} @foreach($user->getWallet as $wallet) @endforeach
    Amount Date
    {{ $user->getWallet->amount }} {{ $user->getWallet->created_at }}
    --}}
    @endif
    Lead Purchased
    @foreach ($user->leadPurchased as $data) @endforeach
    Leads Details Action
    Name: {{$data->lead->name ?? '-'}}
    Email: {{$data->lead->email ?? '-'}}
    Category: {{$data->lead->category['alt_name'] ?? '-'}}
    Sub-Category: {{$data->lead->subcategory['slug'] ?? '-'}}

    View Lead
    {{-- {{$user->leadPurchased}} --}}
    @if ($user->getWallet()->exists() && ($user->getWallet['amount'] > 0)) @endif @endsection