
<?php $__env->startSection('member-content'); ?>
<h1 style="margin:0 0 30px;color:#414141;font-size:24px;font-weight:600;">İade ve İptal Taleplerim</h1>

<?php if($returns->count() > 0): ?>
    <div style="display:flex;flex-direction:column;gap:16px;">
        <?php $__currentLoopData = $returns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $return): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div style="border:1px solid #e5e7eb;border-radius:8px;padding:20px;background:#fff;">
                <div style="display:flex;justify-content:space-between;align-items:start;margin-bottom:16px;flex-wrap:wrap;gap:12px;">
                    <div>
                        <div style="font-weight:600;color:#414141;font-size:18px;margin-bottom:4px;">Talep #<?php echo e($return->return_number); ?></div>
                        <div style="font-size:14px;color:#666;"><?php echo e($return->created_at->format('d.m.Y H:i')); ?></div>
                        <div style="font-size:14px;color:#666;margin-top:4px;">Sipariş #<?php echo e($return->order->order_number); ?></div>
                    </div>
                    <div style="display:flex;gap:12px;align-items:center;flex-wrap:wrap;">
                        <span style="display:inline-block;padding:6px 16px;background:#f0f0f0;border-radius:4px;font-size:13px;font-weight:600;color:#414141;">
                            <?php if($return->type == 'return'): ?> İade
                            <?php elseif($return->type == 'exchange'): ?> Değişim
                            <?php elseif($return->type == 'cancellation'): ?> İptal
                            <?php endif; ?>
                        </span>
                        <span style="display:inline-block;padding:6px 16px;border-radius:4px;font-size:13px;font-weight:600;
                            <?php if($return->status == 'pending'): ?> background:#fff3cd;color:#856404;
                            <?php elseif($return->status == 'approved'): ?> background:#d4edda;color:#155724;
                            <?php elseif($return->status == 'rejected'): ?> background:#f8d7da;color:#721c24;
                            <?php elseif($return->status == 'processing'): ?> background:#d1ecf1;color:#0c5460;
                            <?php elseif($return->status == 'completed'): ?> background:#d4edda;color:#155724;
                            <?php endif; ?>">
                            <?php if($return->status == 'pending'): ?> Beklemede
                            <?php elseif($return->status == 'approved'): ?> Onaylandı
                            <?php elseif($return->status == 'rejected'): ?> Reddedildi
                            <?php elseif($return->status == 'processing'): ?> İşleniyor
                            <?php elseif($return->status == 'completed'): ?> Tamamlandı
                            <?php endif; ?>
                        </span>
                    </div>
                </div>

                <div style="background:#f9f9f9;border-radius:4px;padding:12px;margin-bottom:12px;">
                    <div style="font-size:12px;color:#666;margin-bottom:4px;">Talep Nedeni</div>
                    <div style="color:#414141;"><?php echo e($return->reason); ?></div>
                </div>

                <?php if($return->admin_notes): ?>
                <div style="background:#e8f5e9;border-radius:4px;padding:12px;margin-bottom:12px;">
                    <div style="font-size:12px;color:#2e7d32;margin-bottom:4px;font-weight:600;">Yönetici Notu</div>
                    <div style="color:#414141;"><?php echo e($return->admin_notes); ?></div>
                </div>
                <?php endif; ?>

                <div style="text-align:right;">
                    <a href="<?php echo e(route('member.returns.show', $return)); ?>" style="display:inline-block;padding:10px 20px;background:#7db64f;color:#fff;text-decoration:none;border-radius:4px;font-weight:600;font-size:14px;">Detayları Gör</a>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

    <div style="margin-top:30px;">
        <?php echo e($returns->links()); ?>

    </div>
<?php else: ?>
    <div style="text-align:center;padding:60px 20px;color:#666;">
        <div style="font-size:64px;margin-bottom:20px;">↩️</div>
        <div style="font-size:20px;margin-bottom:12px;color:#414141;font-weight:600;">Henüz iade/iptal talebiniz bulunmuyor</div>
        <div style="font-size:14px;margin-bottom:24px;">Teslim edilen siparişleriniz için iade veya değişim talebi oluşturabilirsiniz</div>
        <a href="<?php echo e(route('member.orders.index')); ?>" style="display:inline-block;padding:12px 24px;background:#7db64f;color:#fff;text-decoration:none;border-radius:4px;font-weight:600;">Siparişlerime Git</a>
    </div>
<?php endif; ?>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('member.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xamp\htdocs\laravel-full\resources\views/member/returns/index.blade.php ENDPATH**/ ?>