HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ipsremont-demo/storage/framework/views/0a081534401d094387a9151639a81b794c6c9e9b.php
<?php

use App\User;
use Illuminate\Support\Facades\Auth;

/** @var User $user */
$user = Auth::user();
?>

<?php $__env->startSection('title'); ?>
     <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => 'services.showPage']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'services.showPage']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
        <?php echo $__env->make('layouts.subheader', ["pageTitle"=>"services.showPage"], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="d-flex flex-column-fluid">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6 сol-sm-12">
                        <div class="card card-custom">
                            <!--begin::Header-->
                            <div class="card-header h-auto py-4">
                                <div class="card-title">
                                    <h3 class="card-label"><?php echo e($service->name); ?>

                                        <span class="d-block text-muted pt-2 font-size-sm"><?php echo app('translator')->get('profile.company_data'); ?></span>
                                    </h3>
                                </div>
                            </div>
                            <!--end::Header-->
                            <!--begin::Body-->
                            <div class="card-body ">
                                <div class="d-flex align-items-center justify-content-between mb-2">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get('services.location'); ?>:</span>
                                    <?php if($service->getAddress()): ?>
                                        <?php echo e($service->getAddress()->country); ?>

                                        <?php if($service->getAddress()->city): ?>
                                            ,
                                        <?php endif; ?>
                                        <?php echo e($service->getAddress()->city); ?>

                                    <?php else: ?>
                                        Нет адреса
                                    <?php endif; ?>
                                </div>
                                <div class="d-flex align-items-center justify-content-between mb-2">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->getLabel('physical_address')); ?>:</span>
                                    <?php if($service->getAddress()): ?>
                                        <span><?php echo e($service->getAddress()->address); ?></span>
                                    <?php else: ?>
                                        Нет адреса
                                    <?php endif; ?>
                                </div>
                                <div class="d-flex align-items-center justify-content-between mb-8">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->getLabel('inn')); ?>:</span>
                                    <span><?php echo e($service->inn); ?></span>
                                </div>
                                <?php if($user->isManager()): ?>
                                    <div class="d-flex align-items-center justify-content-between mb-8">
                                        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->getLabel('balance')); ?>:</span>
                                        <span><?php echo number_format($service->getBalance(), 2, ',', ' ') . ' ' . session()->get('currencySymbol') ?> Валюта</span>
                                    </div>
                                <?php endif; ?>
                                <div class="d-flex align-items-center justify-content-between mb-8">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get('services.registered_at'); ?>:</span>
                                    <span><?php echo e($service->created_at->format(config('crud.formatDate'))); ?></span>
                                </div>

                                <p class="text-dark-50"><?php echo @nl2br($service->additional_info); ?></p>
                            </div>
                            <!--end::Body-->
                        </div>
                    </div>

                    <div class="col-lg-6 сol-sm-12">
                        <div class="card card-custom">
                            <!--begin::Header-->
                            <div class="card-header h-auto py-4">
                                <div class="card-title">
                                    <h3 class="card-label"><?php echo e($service->user->name ?? ''); ?>

                                        <span class="d-block text-muted pt-2 font-size-sm"><?php echo app('translator')->get('profile.user_data'); ?></span>
                                    </h3>
                                </div>
                            </div>
                            <!--end::Header-->
                            <!--begin::Body-->
                            <div class="card-body ">
                                <div class="d-flex align-items-center justify-content-between mb-2">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->user->getLabel('email')); ?>:</span>
                                    <a href="mailto:<?php echo e($service->user->email  ?? ''); ?>"
                                       class="text-hover-primary"><?php echo e($service->user->email  ?? ''); ?></a>
                                </div>
                                <div class="d-flex align-items-center justify-content-between mb-8">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->user->getLabel('phone')); ?>:</span>
                                    <span><a href="tel:<?php echo e($service->user->phone); ?>"><?php echo e($service->user->phone); ?></a></span>
                                </div>
                                <div class="d-flex align-items-center justify-content-between mb-2">
                                    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->user->getLabel('additional_phone')); ?>:</span>
                                    <a href="tel:<?php echo e($service->user->additional_phone); ?>"><?php echo e($service->user->additional_phone); ?></a>
                                </div>

                                <?php if($service->branch()->first()): ?>
                                    <div class="d-flex align-items-center justify-content-between mt-10 mb-2">
                                        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($service->getLabel('branch_id')); ?>:</span>
                                        <?php echo e($service->branch->name ?? ''); ?>

                                    </div>
                                <?php endif; ?>
                            </div>
                            <!--end::Body-->
                        </div>
                    </div>

                    <?php if($user->isService()): ?>
                        <div class="col-lg-12 сol-sm-12 mt-8">
                            <div class="card card-custom">
                                <div class="card-body">
                                    <!--begin::Row-->
                                    <div class="row m-0 mb-n4 mt-2">
                                        <a class="bg-light-primary bg-hover-primary px-6 py-6 rounded mb-6 mr-6 text-primary text-hover-light" href="<?php echo e(route('address.edit', ['id'=>$service->getAddress()->id])); ?>">
                                            <i class="text-primary icon-3x fas fa-map-marked-alt"></i>
                                            <span style="vertical-align: top;" class="font-weight-bold font-size-h6 mt-3 ml-4 mr-1 d-inline-block"><?php echo app('translator')->get('profile.edit_address'); ?></span>
                                        </a>

                                        <a class="bg-light-primary bg-hover-primary px-6 py-6 rounded mb-6 mr-6 text-primary text-hover-light"
                                           href="<?php if($user->isService()): ?> <?php echo e(route('profile.edit')); ?> <?php else: ?> <?php echo e(route('users.edit', ['id'=>$service->user_id])); ?> <?php endif; ?>">
                                            <i class="text-primary icon-3x fas fa-user-edit"></i>
                                            <span style="vertical-align: top;" class="font-weight-bold font-size-h6 mt-3 ml-4 mr-1 d-inline-block">
                                <?php echo app('translator')->get('profile.edit_profile'); ?>
                                </span>
                                        </a>

                                        <a class="bg-light-primary bg-hover-primary px-6 py-6 rounded mb-6 mr-6 text-primary text-hover-light" href="<?php echo e(route('profile.company.add')); ?>">
                                            <i class="text-primary icon-3x fas fa-tools"></i>
                                            <span style="vertical-align: top;" class="font-weight-bold font-size-h6 mt-3 ml-4 mr-1 d-inline-block"><?php echo app('translator')->get('profile.new_company'); ?></span>
                                        </a>
                                    </div>
                                    <!--end::Row-->
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>

                    <?php if($allServices): ?>
                        <div class="col-lg-6 сol-sm-12 mt-8">
                            <div class="card card-custom gutter-b">
                                <div class="card-header">
                                    <h3 class="card-title"><?php echo app('translator')->get('profile.old_companies'); ?></h3>
                                </div>
                                <div class="card-body">

                                    <?php if($user->isService()): ?>
                                        <p class="lead mb-10"><?php echo app('translator')->get('profile.listDescription'); ?></p>
                                    <?php endif; ?>

                                    <table class="table table-bordered mb-8">
                                        <?php $__currentLoopData = $allServices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><a href="<?php echo e(route('services.show', $company->id)); ?>" class="text-primary font-weight-bolder"><?php echo e($company->getName()); ?>, <?php echo e($company->getInn()); ?></a>
                                                    <span class="pl-4"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.icon-field','data' => ['data' => ''.e($company->display).'','comparison' => '1','icon' => 'la fab la-periscope']]); ?>
<?php $component->withName('icon-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['data' => ''.e($company->display).'','comparison' => '1','icon' => 'la fab la-periscope']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> </span>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </table>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ipsremont-demo/resources/views/services/show.blade.php ENDPATH**/ ?>