@php
    // Deteksi device berdasarkan user agent
    // FIX: Tambahkan tablet & bot exclusion, lebih robust
    $userAgent = request()->header('User-Agent', '');
    $isMobile  = (bool) preg_match(
        '/(android(?!.*tablet)|iphone|ipod|windows phone|blackberry|opera mini|mobile)/i',
        $userAgent
    );
@endphp

@if($isMobile)
    @include('siswa.modul.show-mobile')
@else
    @include('siswa.modul.show-desktop')
@endif