@extends('layouts.frontend') @section('title', 'Detail Tim - ' . $team->name) @section('meta') @endsection @section('content')
@if ($team->photo && file_exists(public_path('storage/' . $team->photo))) {{ $team->name }} @else
{{ strtoupper(substr($team->name, 0, 2)) }}
@endif
@if ($team->is_active)
@endif

{{ $team->name }}

{{ $team->position }}

@if ($team->email)
{{ $team->email }}
@endif @if ($team->phone)
{{ $team->phone }}
@endif
@if ($team->bio)

Tentang {{ $team->name }}

{{ $team->bio }}

@endif

Informasi Kontak

@if ($team->email) @endif @if ($team->phone) @endif
@if ( $team->social_links && (is_array($team->social_links) ? count($team->social_links) > 0 : count(json_decode($team->social_links, true)) > 0))

Media Sosial

@foreach (is_array($team->social_links) ? $team->social_links : json_decode($team->social_links, true) as $platform => $url) @if ($url) @if ($platform == 'linkedin') @elseif($platform == 'twitter') @elseif($platform == 'instagram') @elseif($platform == 'facebook') @else @endif {{ ucfirst($platform) }} @endif @endforeach
@endif

Status

Status Aktif {{ $team->is_active ? 'Aktif' : 'Tidak Aktif' }}
Urutan #{{ $team->sort_order ?? 'N/A' }}
Bergabung {{ $team->created_at ? $team->created_at->format('M Y') : 'N/A' }}

Kontak Cepat

@if ($team->email) Kirim Email @endif @if ($team->phone) Telepon @endif
@if ($otherTeamMembers && $otherTeamMembers->count() > 0) @endif
@endsection @push('styles') @endpush