<?php if (isset($component)) { $__componentOriginal2a2e454b2e62574a80c8110e5f128b60 = $component; } ?>
<?php $component = App\View\Components\Header::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Header::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2a2e454b2e62574a80c8110e5f128b60)): ?>
<?php $component = $__componentOriginal2a2e454b2e62574a80c8110e5f128b60; ?>
<?php unset($__componentOriginal2a2e454b2e62574a80c8110e5f128b60); ?>
<?php endif; ?>
<div class="main">
    <div class="container">
        <div class="applys">
            <li>
                <h3 class="ap">Мои заявки</h3>
            </li>
            <?php if($myaps->count() > 0): ?>
            <?php $__currentLoopData = $myaps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ap): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <section class="apply shadow col-md-4 mb-4">
                <li>
                    <p>Вид услуги:
                        <?php if($ap->category_id): ?>
                        <?php echo e($ap->category->name); ?>

                        <?php elseif($ap->customcategory): ?>
                        <?php echo e($ap->customcategory); ?>

                        <?php else: ?>
                        Не указано
                        <?php endif; ?>
                    </p>
                    <p>Имя: <?php echo e($ap->name); ?></p>
                    <p>Номер: <?php echo e($ap->number); ?></p>
                    <p>Почта: <?php echo e($ap->email); ?></p>
                    <p>Адрес: <?php echo e($ap->address); ?></p>
                    <p>Дата: <?php echo e(date('d.m.Y', strtotime($ap->date))); ?></p>
                    <p>Время: <?php echo e(date('H:i', strtotime($ap->time))); ?></p>
                    <p>Способ оплаты: <?php echo e($ap->paymethod); ?></p>
                    <p>Статус заявки:
                        <?php if($ap->status == 'Новая заявка'): ?>
                        <span class="badge bg-warning">Новая заявка</span>
                        <?php elseif($ap->status == 'Услуга оказана'): ?>
                        <span class="badge bg-success">Услуга оказана</span>
                        <?php else: ?>
                        <span class="badge bg-danger">Услуга отменена</span>
                        <?php endif; ?>
                    </p>
                </li>
            </section>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php else: ?>
            <div class="alert alert-info text-center">
                На данный момент у вас нет заявок
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<?php if (isset($component)) { $__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa = $component; } ?>
<?php $component = App\View\Components\Footer::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('footer'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Footer::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa)): ?>
<?php $component = $__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa; ?>
<?php unset($__componentOriginal99051027c5120c83a2f9a5ae7c4c3cfa); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginal7ab197232c97c7955fb023ba2629a718 = $component; } ?>
<?php $component = App\View\Components\Scripts::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('scripts'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Scripts::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7ab197232c97c7955fb023ba2629a718)): ?>
<?php $component = $__componentOriginal7ab197232c97c7955fb023ba2629a718; ?>
<?php unset($__componentOriginal7ab197232c97c7955fb023ba2629a718); ?>
<?php endif; ?><?php /**PATH C:\xampp\htdocs\clean\resources\views/myApply.blade.php ENDPATH**/ ?>