<div class="grid grid-cols-1 md:grid-cols-2 gap-4 text-sm">
    <!-- Label -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Address Label <span class="text-rose-500">*</span></label>
        <input type="text" name="label" required placeholder="e.g. Home, Work, Head Office" value="<?php echo e(old('label', $address ? $address->label : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Recipient Name -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Recipient Name <span class="text-rose-500">*</span></label>
        <input type="text" name="recipient_name" required value="<?php echo e(old('recipient_name', $address ? $address->recipient_name : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Phone -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Phone Number <span class="text-rose-500">*</span></label>
        <input type="text" name="phone" required value="<?php echo e(old('phone', $address ? $address->phone : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Country -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Country <span class="text-rose-500">*</span></label>
        <input type="text" name="country" required value="<?php echo e(old('country', $address ? $address->country : 'Cambodia')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Province -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Province <span class="text-rose-500">*</span></label>
        <input type="text" name="province" required value="<?php echo e(old('province', $address ? $address->province : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- City -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">City <span class="text-rose-500">*</span></label>
        <input type="text" name="city" required value="<?php echo e(old('city', $address ? $address->city : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- District -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">District</label>
        <input type="text" name="district" value="<?php echo e(old('district', $address ? $address->district : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Commune -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Commune</label>
        <input type="text" name="commune" value="<?php echo e(old('commune', $address ? $address->commune : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Village -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Village</label>
        <input type="text" name="village" value="<?php echo e(old('village', $address ? $address->village : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Street Address -->
    <div class="md:col-span-2">
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Street Address <span class="text-rose-500">*</span></label>
        <input type="text" name="street_address" required value="<?php echo e(old('street_address', $address ? $address->street_address : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Latitude -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Latitude</label>
        <input type="number" name="latitude" step="any" placeholder="e.g. 11.5564" value="<?php echo e(old('latitude', $address ? $address->latitude : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Longitude -->
    <div>
        <label class="block text-xs font-semibold text-gray-700 dark:text-gray-300 mb-1">Longitude</label>
        <input type="number" name="longitude" step="any" placeholder="e.g. 104.9282" value="<?php echo e(old('longitude', $address ? $address->longitude : '')); ?>"
               class="w-full px-3 py-1.5 bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-lg text-xs text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500">
    </div>

    <!-- Default Shipping / Billing flags -->
    <div class="md:col-span-2 flex flex-wrap items-center gap-4 mt-2">
        <label class="inline-flex items-center text-xs font-semibold text-gray-700 dark:text-gray-300 cursor-pointer">
            <input type="checkbox" name="is_default_shipping" value="1" <?php echo e(old('is_default_shipping', $address && $address->is_default_shipping) ? 'checked' : ''); ?>

                   class="rounded text-emerald-600 border-gray-300 focus:ring-emerald-500 mr-2">
            Set as default shipping address
        </label>
        
        <label class="inline-flex items-center text-xs font-semibold text-gray-700 dark:text-gray-300 cursor-pointer">
            <input type="checkbox" name="is_default_billing" value="1" <?php echo e(old('is_default_billing', $address && $address->is_default_billing) ? 'checked' : ''); ?>

                   class="rounded text-emerald-600 border-gray-300 focus:ring-emerald-500 mr-2">
            Set as default billing address
        </label>
    </div>
</div>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/admin/customers/partials/address-form-fields.blade.php ENDPATH**/ ?>