{{-- resources/views/experts/show.blade.php --}} @extends('layouts.app') @section('css') @endsection @section('js') @endsection @push('pageTitle') {{ __('labels.expert_details') }} @endpush @section('content') @include('components.common.page-header', [ 'pageTitle' => __('labels.expert_details'), 'actionButton' => [ 'url' => route('experts.index'), 'text' => __('labels.back_to_list'), 'icon' => 'fa-arrow-left', ], ]) {{-- Expert Profile Card --}}
{{-- Avatar from User relationship --}} @if ($expert->user && $expert->user->profile_image) {{ $expert->user->name }} @else
{{ $expert->user ? strtoupper(substr($expert->user->name, 0, 1)) : 'E' }}
@endif
{{-- Name from User relationship --}}

{{ $expert->user ? $expert->user->name : __('labels.expert') }}

{{-- Quick Actions --}}
@can('update', $expert) @endcan @can('delete', $expert) @endcan @can('updateVerify', $expert) @endcan @can('updateStatus', $expert) @endcan
{{-- Designation and Company --}} @if ($expert->designation || $expert->company)

@if ($expert->designation) {{ $expert->designation }} @endif @if ($expert->company) @if ($expert->designation) @ {{ $expert->company }} @else {{ $expert->company }} @endif @endif

@endif {{-- Email from User relationship --}} @if ($expert->user && $expert->user->email)

{{ $expert->user->email }}

@endif {{-- Categories --}} @if ($expert->categories && $expert->categories->count() > 0)
@foreach ($expert->categories as $category) {{ $category->name }} @endforeach
@endif
{{-- Status Badges --}}
@if ($expert->is_active) {{ __('labels.active') }} @else {{ __('labels.inactive') }} @endif @if ($expert->is_verified) {{ __('labels.verified') }} @else {{ __('labels.unverified') }} @endif @if ($expert->experience_years) {{ $expert->experience_years }} {{ __('labels.years_experience') }} @endif
{{-- Expert Information Grid --}}
{{-- LinkedIn URL --}} @if ($expert->linkedin_url)
{{ __('labels.linkedin_url') }}
@endif {{-- Website URL --}} @if ($expert->website_url) @endif {{-- Experience Years (if not shown in badges) --}} @if ($expert->experience_years)
{{ __('labels.experience_years') }}
{{ $expert->experience_years }} {{ __('labels.years') }}
@endif
{{-- Bio Section --}} @if ($expert->bio)
{{ __('labels.bio') }}
{!! nl2br(e($expert->bio)) !!}
@endif {{-- Qualifications Section --}} @if ($expert->qualifications && is_array($expert->qualifications) && count($expert->qualifications) > 0)
{{ __('labels.qualifications') }}
@foreach ($expert->qualifications as $qualification)
{{ $qualification['degree'] }}
{{ $qualification['institution'] }}
{{ $qualification['year'] }}
@endforeach
@endif {{-- Schedules Section --}} @if ($expert->schedules && $expert->schedules->count() > 0)
{{ __('labels.schedules') }}
{{-- --}} @foreach ($expert->schedules as $schedule) {{-- --}} @endforeach
{{ __('labels.day_of_week') }} {{ __('labels.start_time') }} {{ __('labels.end_time') }}{{ __('labels.status') }}
@if ($schedule->day_of_week) {{ __('labels.day_names.' . strtolower($schedule->day_of_week)) }} @endif {{ $schedule->start_time ? date('h:i A', strtotime($schedule->start_time)) : '-' }} {{ $schedule->end_time ? date('h:i A', strtotime($schedule->end_time)) : '-' }} @if ($schedule->is_active) {{ __('labels.active') }} @else {{ __('labels.inactive') }} @endif
@endif {{-- Meta Information --}} @include('components.meta.stats', [ 'created_at' => $expert->created_at ?? null, 'updated_at' => $expert->updated_at ?? null, 'creater' => $expert->user->name ?? null, 'creator_avatar' => $expert->user->profile_image ?? null, ]) @endsection