@extends('layouts.main') @section('title', $data['title']) @section('content')
@php $id = Auth::user()->id; $company = DB::table('users')->where('id', $id)->value('avatar'); if ($company) { $companyLogo = $company; } else { $companyLogo = url('assets/images/company-logo.png'); } @endphp
@php $company = \App\Models\Company::where('user_id', Auth::id())->first(); @endphp Profile Picture @if ($company) @endif

{{ Auth::user()->first_name }} {{ Auth::user()->last_name }}

{{ getUserTypeName(Auth::user()->type) }}

Full Name: {{ $company->name }}
Type: {{ ucfirst(strtolower(getUserTypeName(Auth::user()->type))) }}
Mobile: {{ $company->phone_number }}
E-mail: {{ $company->email }}
Location: {{ $company->address_line_1 }}
{{ $company->address_line_2 }} @if ($company->address_line_2 != '') , @endif {{ $company->pincode }}
{{ implode( ', ', array_filter([ getCityName(Auth::user()->city_id), getStateName(Auth::user()->state_id), getCountryName(Auth::user()->country_id), ]), ) }}
@endsection('content') @section('custom-scripts') @endsection