<?php
    $coach = $coach ?? [];
?>

<div class="mx-auto w-full max-w-5xl px-6 py-10 md:px-12">
    <div class="grid gap-16 md:grid-cols-12 md:items-start">
        <div class="md:col-span-6">
            <div class="overflow-hidden bg-white/5">
                <img
                    src="<?php echo e($coach['image'] ?? ''); ?>"
                    alt="<?php echo e(($coach['name'] ?? '教練') . ' ' . ($coach['nameEn'] ?? '')); ?>"
                    class="block w-full object-cover"
                    loading="lazy"
                    decoding="async"
                >
            </div>
        </div>

        <div class="md:col-span-6 text-white/80">
            <div class="max-w-xl">
                <div class="flex items-end gap-3">
                    <div class="text-3xl md:text-4xl font-bold tracking-tight text-white">
                        <?php echo e($coach['name'] ?? ''); ?>

                    </div>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($coach['nameEn'])): ?>
                        <div class="text-sm font-semibold text-white/55">
                            <?php echo e($coach['nameEn']); ?>

                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($coach['headline'])): ?>
                    <div class="mt-2 text-sm text-white/55">
                        <?php
                            $primaryVenue = $coach['primaryVenue'] ?? null;
                            $primaryVenueName = is_array($primaryVenue) ? ($primaryVenue['name'] ?? null) : null;
                            $primaryVenueType = is_array($primaryVenue) ? ($primaryVenue['venue_type'] ?? null) : null;

                            $headlinePrefix = '';
                            if (!empty($primaryVenueName)) {
                                $headlinePrefix = '現任【' . $primaryVenueName . '】' . ($primaryVenueType ? $primaryVenueType . ' ' : '');
                            }
                        ?>

                        <?php echo e($headlinePrefix); ?><?php echo e($coach['headline']); ?>

                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($coach['specialties'])): ?>
                    <div class="mt-10 text-lg font-semibold text-white">專長</div>
                    <div class="mt-3 space-y-2 text-sm leading-6 text-white/70">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = ($coach['specialties'] ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div>・<?php echo e($line); ?></div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($coach['certifications'])): ?>
                    <div class="mt-12 text-lg font-semibold text-white">專業證照</div>
                    <div class="mt-3 space-y-2 text-sm leading-6 text-white/70">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = ($coach['certifications'] ?? []); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div><?php echo e($line); ?></div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        </div>
    </div>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($coach['content'])): ?>
        <div class="mt-16 text-white/80">
            <?php echo $coach['content']; ?>

        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</div>
<?php /**PATH F:\xampp\htdocs\Laravel\v1246\lavida\resources\views/pages/coaches/_content.blade.php ENDPATH**/ ?>