<?php $__env->startPush('css'); ?>
    <link rel="stylesheet" href="/site/assets/vendors/simple-datatables/style.css">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
    <div class="table-responsive" style="background: #fff">
        <table id="dataTable" class="table data-table table-striped mb-0">
            <thead>
            <tr>
                <th>Başvuru No</th>
                <th>Ad Soyad</th>
                <th>Telefon Numarası</th>
                <th>İl</th>
                <th>İlçe</th>
                <th>Mahalle</th>
                <th>Sokak</th>
                <th>Bina No</th>
                <th>Kat</th>
                <th>Daire No</th>
                <th>Kişi İsimleri</th>
                <th>Kişi Telefonları</th>
                <th>Durum</th>
            </tr>
            </thead>
            <tbody>
            <?php $__currentLoopData = $needHomes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $needHome): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td>#<?php echo e($needHome->no); ?></td>
                    <td><?php echo e($needHome->name); ?></td>
                    <td><?php echo e($needHome->telephone); ?></td>
                    <td><?php echo e($needHome->getCity->il_adi ?? ''); ?></td>
                    <td><?php echo e($needHome->getTown->ilce_adi ?? ''); ?></td>
                    <td><?php echo e($needHome->getDistrict->mahalle_adi ?? ''); ?></td>
                    <td><?php echo e($needHome->getStreet->sokak_adi ?? ''); ?></td>
                    <td><?php echo e($needHome->apartment_no); ?></td>
                    <td><?php echo e($needHome->floor); ?></td>
                    <td><?php echo e($needHome->apartment); ?></td>
                    <td>
                        <?php $__currentLoopData = $needHome->getPersons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $needHomePerson): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php echo e($needHomePerson->name); ?> <?php if(array_key_last($needHome->getPersons->toArray()) != $key): ?> / <?php endif; ?> <br>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </td>
                    <td>
                        <?php $__currentLoopData = $needHome->getPersons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $needHomePerson): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php echo e($needHomePerson->telephone); ?> <?php if(array_key_last($needHome->getPersons->toArray()) != $key): ?> / <?php endif; ?> <br>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </td>
                    <td><?php echo e($needHome->status == 2 ? 'Bekliyor' : ($needHome->status == 1 ? 'Tamamlandı' : 'Reddedildi')); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <script src="/site/assets/vendors/simple-datatables/simple-datatables.js"></script>
    <script src="/site/assets/js/bootstrap.min.js"></script>
    <script>
        let dataTable = new simpleDatatables.DataTable("#dataTable");
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.pages.build', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\kardesyuvan\resources\views/admin/pages/need_home.blade.php ENDPATH**/ ?>