   <?php
       $shareableLink = url(
           '/job-descriptions/' .
               ($jd->job_id ?? 'JD-006') .
               '/' .
               \Illuminate\Support\Str::slug($jd->job_title ?? 'job'),
       );
   ?>
   <?php if($jd->status === 'published'): ?>
       <button
           class="w-full inline-flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium text-gray-700 border border-gray-200 hover:bg-gray-50 transition-colors"
           x-data="{ copied: false }"
           @click="navigator.clipboard.writeText('<?php echo e($shareableLink); ?>'); copied = true; setTimeout(() => copied = false, 2000)">

           <svg class="w-4 h-4 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
               <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                   d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z" />
           </svg>

           <span x-text="copied ? 'Link Copied!' : 'Generate Share Link'"></span>
       </button>
   <?php endif; ?>
<?php /**PATH /var/www/ratemypay_dev/resources/views/partials/copy_link.blade.php ENDPATH**/ ?>