@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
Profile Picture @php $branch = \App\Models\Branch::where('user_id', Auth::id())->first(); @endphp @if ($branch) @endif

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

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

Full Name: {{ $branch->name }}
Type: {{ ucfirst(strtolower(getUserTypeName(Auth::user()->type))) }}
Mobile: {{ $branch->phone_number }}
E-mail: {{ $branch->email }}
Location: {{ $branch->address_line_1 }}
{{ $branch->address_line_2 }} @if ($branch->address_line_2 != '') , @endif {{ $branch->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