<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

     <?php $__env->slot('header', null, []); ?> 
        <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200">
            My Profile
        </h2>
     <?php $__env->endSlot(); ?>

    <?php
        $province = \Laravolt\Indonesia\Models\Province::find($user->province);
        $city = \Laravolt\Indonesia\Models\City::find($user->city);
        $district = \Laravolt\Indonesia\Models\District::find($user->district);
        $village = \Laravolt\Indonesia\Models\Village::find($user->village);
    ?>


    <div class="py-12">

        <div class="max-w-5xl mx-auto sm:px-6 lg:px-8">

            <div class="bg-white dark:bg-gray-800 shadow rounded-xl p-8">


                
                <div class="flex items-center gap-6">

                    
                    <img
                        src="<?php echo e($user->avatar ? asset('storage/'.$user->avatar) : 'https://ui-avatars.com/api/?name='.urlencode($user->name).'&background=6366f1&color=fff&size=128'); ?>"
                        class="w-24 h-24 rounded-full shadow object-cover"
                    >

                    <div>

                        <h3 class="text-2xl font-bold text-gray-800 dark:text-white">
                            <?php echo e($user->name); ?>

                        </h3>

                        <p class="text-gray-500">
                            <?php echo e($user->email); ?>

                        </p>

                        <p class="text-gray-500">
                            <?php echo e($user->phone ?? '-'); ?>

                        </p>
                    </div>
                </div>


                
                <hr class="my-6">


                <h4 class="text-lg font-semibold mb-4 text-gray-700 dark:text-gray-200">
                    Alamat
                </h4>


                <div class="grid grid-cols-1 md:grid-cols-2 gap-4 text-gray-700 dark:text-gray-300">

                    <div>
                        <span class="font-medium">Provinsi</span><br>
                        <?php echo e($province->name ?? '-'); ?>

                    </div>

                    <div>
                        <span class="font-medium">Kota / Kabupaten</span><br>
                        <?php echo e($city->name ?? '-'); ?>

                    </div>

                    <div>
                        <span class="font-medium">Kecamatan</span><br>
                        <?php echo e($district->name ?? '-'); ?>

                    </div>

                    <div>
                        <span class="font-medium">Kelurahan</span><br>
                        <?php echo e($village->name ?? '-'); ?>

                    </div>
                </div>


                
                <div class="mt-6 text-gray-700 dark:text-gray-300">
                    <span class="font-medium">Alamat Lengkap</span>
                    <p class="mt-1">
                        <?php echo e($user->address ?? '-'); ?>

                    </p>
                </div>


                
                <div class="mt-8 flex gap-3">
                    <a
                        href="<?php echo e(route('profile.edit')); ?>"
                        class="bg-indigo-600 hover:bg-indigo-700 text-white px-5 py-2 rounded-lg">
                        Edit Profile
                    </a>
                </div>
            </div>
        </div>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH C:\laragon\www\LokaPustaka\resources\views/profile/show.blade.php ENDPATH**/ ?>