<?php $__env->startSection('icerik'); ?>

    <section id="section-cars" class="bg-gray-100" style="background-size: 100%; background-repeat: no-repeat;">
        <div class="container" style="background-size: 100%; background-repeat: no-repeat;">
            <div class="row" style="background-size: 100%; background-repeat: no-repeat;">
                <div class="col-lg-3 mb30" style="background-size: 100%; background-repeat: no-repeat;">
                    <div class="card p-4 rounded-5" style="background-size: 100%; background-repeat: no-repeat;">
                        <div class="profile_avatar" style="background-size: 100%; background-repeat: no-repeat;">
                            <div class="profile_img" style="background-size: 100%; background-repeat: no-repeat;">
                                <img src="images/np.png" alt="">
                            </div>
                            <div class="profile_name" style="background-size: 100%; background-repeat: no-repeat;">
                                <h4>
                                    <?php echo e(ucwords($uye->name)); ?>

                                    <span class="profile_username text-gray"><?php echo e($uye->email); ?></span>
                                </h4>
                            </div>
                        </div>
                        <div class="spacer-20" style="background-size: 100%; background-repeat: no-repeat;"></div>
                        <ul class="menu-col">

                            <li><a href="/panel/profil" <?php if($alt=="profil" || $alt==""): ?> class="active" <?php endif; ?>><i class="fa fa-user"></i>Profilim</a></li>
                            <li><a href="/panel/transfer" <?php if($alt=="transfer"): ?> class="active" <?php endif; ?>><i class="fa fa-calendar"></i>Transferlerim</a></li>
                            <li><a href="/panel/kiralama" <?php if($alt=="kiralama"): ?> class="active" <?php endif; ?>><i class="fa fa-car"></i>Araç Kiralamalarım</a></li>
                            <li><a href="/logout"><i class="fa fa-sign-out"></i>Güvenli Çıkış</a></li>
                        </ul>
                    </div>
                </div>

                <style>
                    .os { overflow-x: scroll!important;}

                </style>
                <div class="col-lg-9" style="background-size: 100%; background-repeat: no-repeat;">

                    <?php if($alt=="transfer"): ?>
                    <div class="os card p-4 rounded-5 mb25" style="background-size: 100%; background-repeat: no-repeat;">
                        <h4>Transferlerim</h4>

                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">No</span></th>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Yön</span></th>

                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Alınma Adresi</span></th>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Bırakılma Adresi</span></th>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Alınma</span></th>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Bırakılma</span></th>
                                <th scope="col"><span class="text-uppercase fs-12 text-gray">Durum</span></th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $transfer; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><div class="badge bg-gray-100 text-dark" style="background-size: 100%; background-repeat: no-repeat;">TP<?php echo e($item->id); ?></div></td>

                                <td><?php echo e(substr($item->yon,0,30)); ?></td>
                                <td><?php echo e(substr($item->alinmanoktasi,0,30)); ?>...</td>
                                <td><?php echo e(substr($item->birakilmanoktasi,0,30)); ?>...</td>
                                <td><?php echo e(\Carbon\Carbon::createFromDate($item->alinmatarihi)->format('d/m/Y h:i')); ?></td>
                                <td><?php echo e(\Carbon\Carbon::createFromDate($item->birakilmatarihi)->format('d/m/Y h:i')); ?></td>
                                <td>
                                    <?php if($item->durum=="Havale Bekleniyor"): ?>
                                        <a href="/havale?tur=transfer&arac=<?php echo e($item->arac); ?>&sorgu=<?php echo e($item->id); ?>&tek=<?php echo e($item->tek); ?>&cift=<?php echo e($item->cift); ?>" class="badge rounded-pill bg-info" style="background-size: 100%; background-repeat: no-repeat;">
                                            <?php echo e($item->durum); ?></a>
                                        <?php else: ?>
                                    <div class="badge rounded-pill bg-info" style="background-size: 100%; background-repeat: no-repeat;">
                                    <?php echo e($item->durum); ?></div>
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            </tbody>
                        </table>
                    </div>
                    <?php endif; ?>

                    <?php if($alt=="kiralama"): ?>
                            <div class="card p-4 rounded-5 mb25" style="background-size: 100%; background-repeat: no-repeat;">
                                <h4>Araç Kiralamalarım</h4>

                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">#</span></th>
                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">Araç</span></th>

                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">Alınma T</span></th>
                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">Bırakılma T</span></th>

                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">Durum</span></th>
                                        <th scope="col"><span class="text-uppercase fs-12 text-gray">Sorgula</span></th>

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php $__currentLoopData = $kiralama; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                    <td><div class="badge bg-gray-100 text-dark" style="background-size: 100%; background-repeat: no-repeat;">K<?php echo e($item->kid); ?></div></td>
                                    <td><?php echo e($item->isim); ?></td>
                                    <td><?php echo e(\Illuminate\Support\Carbon::createFromDate($item->alinma)->format('d/m/Y')); ?></td>
                                    <td><?php echo e(\Illuminate\Support\Carbon::createFromDate($item->birakilma)->format('d/m/Y')); ?></td>
                                    <td><?php echo e($item->durum); ?></td>
                                            <td><a href="/arac-kirala?id=<?php echo e($item->aracid); ?>&alinma=<?php echo e($item->alinma); ?>&birakilma=<?php echo e($item->birakilma); ?>" class="btn btn-sm btn-outline-info"><i class="fa fa-search"></i> Tekrar Ara</a></td>

                                        </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>

                            </div>
                        <?php endif; ?>

                        <?php if($alt=="profil" || $alt==""): ?>
                            <div class="card p-4 rounded-5 mb25" style="background-size: 100%; background-repeat: no-repeat;">
                                <h4>Profilim</h4>

                                <form action="/profilduzenle" method="post" class="aro">
                                    <?php echo csrf_field(); ?>
                                    Adınız
                                    <input type="text" name="name" class="form-control" value="<?php echo e(auth()->user()->name); ?>">
                                    E-mail
                                    <input type="text" name="email" class="form-control" value="<?php echo e(auth()->user()->email); ?>">
                                    Telefon
                                    <input type="text" name="telefon" class="form-control" value="<?php echo e(auth()->user()->telefon); ?>">
                                    <br>
                                    <button type="submit" class="btn-main">Güncelle</button>
                                </form>

                            </div>
                            <style>
                                .aro input { margin-bottom: 10px;}
                                .gizle { display: none!important;}
                            </style>
                        <?php endif; ?>

                </div>
            </div>
        </div>
    </section>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ucretsizscript/transferpro.ucretsizscript.net/resources/views/panel.blade.php ENDPATH**/ ?>