
<?php $__env->startSection('title', 'Profile Owner'); ?>
<?php $__env->startSection('content'); ?>

<style>
    .field-label {
        font-weight: 600;
        font-size: .95rem;
        color: #661b18;
    }

    .field-value {
        background: #f6e4bd !important;
        color: #661b18 !important;
        border: 1px solid #d4af37 !important;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 15px;
    }

    .maps-frame {
        border-radius: 8px;
        border: 1px solid #d4af37;
        overflow: hidden;
        width: 100%;
    }

    .maps-frame iframe {
        width: 100% !important;
        height: 400px !important;
        border: 0;
        display: block;
    }
</style>

<div class="container">

    <div class="mb-3">
        <label class="field-label">Nama</label>
        <input type="text" class="form-control field-value" value="<?php echo e($user->name); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Email</label>
        <input type="text" class="form-control field-value" value="<?php echo e($user->email); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Nomor Telepon</label>
        <input type="text" class="form-control field-value" value="<?php echo e($user->phone ?? '-'); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Alamat</label>
        <textarea class="form-control field-value" rows="3" disabled><?php echo e($profile->address ?? '-'); ?></textarea>
    </div>

    <div class="mb-3">
        <label class="field-label">Instagram</label>
        <input type="text" class="form-control field-value" value="<?php echo e($profile->instagram ?? '-'); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Shopee</label>
        <input type="text" class="form-control field-value" value="<?php echo e($profile->shopee ?? '-'); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Tokopedia</label>
        <input type="text" class="form-control field-value" value="<?php echo e($profile->tokopedia ?? '-'); ?>" disabled>
    </div>

    <div class="mb-3">
        <label class="field-label">Lokasi</label>

        <?php if(!empty($profile->maps)): ?>
            <div class="maps-frame">
                <?php echo $profile->maps; ?>

            </div>
        <?php else: ?>
            <div class="form-control field-value" disabled>-</div>
        <?php endif; ?>
    </div>

    <div class="d-flex justify-content-between pe-2 mt-4">
        <?php if (isset($component)) { $__componentOriginalb04da7a8feb93a7268b6e0eef6b32739 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.gold-button','data' => ['type' => 'button','onclick' => 'window.location.href=\''.e(route('dashboard')).'\'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('gold-button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'button','onclick' => 'window.location.href=\''.e(route('dashboard')).'\'']); ?>
            <i class="bi bi-arrow-left"></i> Kembali
         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739)): ?>
<?php $attributes = $__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739; ?>
<?php unset($__attributesOriginalb04da7a8feb93a7268b6e0eef6b32739); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb04da7a8feb93a7268b6e0eef6b32739)): ?>
<?php $component = $__componentOriginalb04da7a8feb93a7268b6e0eef6b32739; ?>
<?php unset($__componentOriginalb04da7a8feb93a7268b6e0eef6b32739); ?>
<?php endif; ?>

        <?php if (isset($component)) { $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button','data' => ['type' => 'button','onclick' => 'window.location.href=\''.e(route('profile.edit')).'\'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['type' => 'button','onclick' => 'window.location.href=\''.e(route('profile.edit')).'\'']); ?>
            Edit Profile
         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?>
<?php $attributes = $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561; ?>
<?php unset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?>
<?php $component = $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561; ?>
<?php unset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561); ?>
<?php endif; ?>
    </div>

    <div class="text-muted small mt-3">
        Dibuat: <?php echo e($profile?->created_at?->format('Y-m-d H:i') ?? '-'); ?>

        &nbsp;|&nbsp;
        Diperbarui: <?php echo e($profile?->updated_at?->format('Y-m-d H:i') ?? '-'); ?>

    </div>

</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\PAW\PiaZhang\resources\views/profile/index.blade.php ENDPATH**/ ?>