<?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="container py-5">
    <h3 class=" fw-bold text-center p-4 rounded">Заявки</h3>
            <?php if($myaps->count() > 0): ?>
            <div class="row">
                <?php $__currentLoopData = $myaps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ap): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-md-4 mb-4">
                    <div class="card shadow p-3 h-100 text-center">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">
                                <?php if($ap->category_id): ?>
                                <?php echo e($ap->category->name); ?>

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

                                <?php else: ?>
                                Не указано
                                <?php endif; ?>
                            </h5>
                            <small><?php echo e(date('d.m.Y H:i', strtotime($ap->date . ' ' . $ap->time))); ?></small>
                        </div>
                        <p class="mb-1"><strong>Имя:</strong> <?php echo e($ap->name); ?></p>
                        <p class="mb-1"><strong>Номер:</strong> <?php echo e($ap->number); ?></p>
                        <p class="mb-1"><strong>Почта:</strong> <?php echo e($ap->email); ?></p>
                        <p class="mb-1"><strong>Адрес:</strong> <?php echo e($ap->address); ?></p>
                        <p class="mb-1"><strong>Способ оплаты:</strong> <?php echo e($ap->paymethod); ?></p>
                        <?php if($ap->status == 'Новая заявка'): ?>
                        <p><strong>Статус заявки:</strong> Новая заявка</p>
                        <?php elseif($ap->status == 'Услуга оказана'): ?>
                        <p><strong>Статус заявки:</strong> Услуга оказана</p>
                        <?php else: ?>
                        <p><strong>Статус заявки:</strong> Услуга отменена</p>
                        <?php endif; ?>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <?php else: ?>
            <div class="alert alert-info">
                На данный момент заявок нет
            </div>
            <?php endif; ?>
</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; ?>
</body>

</html>
<?php /**PATH C:\xampp\htdocs\moynesam\resources\views/myApply.blade.php ENDPATH**/ ?>