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/7ffc880a7db5fc15b78679e27f5c0c3720544df8.php
<?php

/**
 * @var \App\Models\Repair\Repair $model
 * @var ?User $user
 * @var ?bool $canOrderCreate
 */

use App\Helpers\CurrencyHelper;
use App\Helpers\UserHelper;
use App\Models\Permission;
use App\Models\Repair\Repair;
use App\User;

$user ??= UserHelper::getUser();
$canBranchesAll = can(Permission::branchesAll);
$canOrderCreate ??= false;
?>

<div class="d-flex align-items-center justify-content-between mb-8">
    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('order_id')); ?>:</span>
    <span>
        <?php $__currentLoopData = $model->getOrdersNumbers(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $name): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <a href="<?php echo e(route('orders.show', $key)); ?>" class="text-primary font-weight-bolder text-hover-primary font-size-lg"><?php echo e($name); ?></a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </span>
</div>
<?php if($canOrderCreate): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <a class="btn mr-2 btn-primary font-weight-bolder" href="<?php echo e(route('orders.cart', ['id' => $model->id])); ?>">
            <i class="fas fa-dolly-flatbed"></i> <?php echo app('translator')->get('orders.cart'); ?>
        </a>
    </div>
    <br/>
<?php endif; ?>


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


<?php if($model->getInnerNbr()): ?>
    <div class="d-flex align-items-center justify-content-between mb-8">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('inner_nbr')); ?>:</span>
        <span><?php echo e($model->getInnerNbr()); ?></span>
    </div>
<?php endif; ?>

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

<?php if($model->getEmail()): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('email')); ?>:</span>
        <span><?php echo e($model->getEmail()); ?></span>
    </div>
<?php endif; ?>

<?php if($model->getPhone()): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('phone')); ?>:</span>
        <span><?php echo e($model->getPhone()); ?></span>
    </div>
<?php endif; ?>

<?php if($model->getAddress()): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('address')); ?>:</span>
        <span><?php echo e($model->getAddress()); ?></span>
    </div>
<?php endif; ?>

<?php if($model->getDevice()->external_id): ?>
    <div class="d-flex align-items-center justify-content-between mb-2 mt-8">
        <span>
            <a href="<?php echo e(route('specifications.categories.device', $model->getDevice()->external_id)); ?>" class="text-primary font-weight-bolder text-hover-primary font-size-lg">
                <?php echo e($model->getDevice()->getSerialName()); ?>

            </a>
        </span>
    </div>
<?php else: ?>
    <div class="d-flex align-items-center justify-content-between mb-2 mt-8">
        <span class="text-primary font-weight-bolder text-hover-primary font-size-lg"><?php echo e($model->device_sku); ?>, <?php echo e($model->device_name); ?></a></span>
    </div>
<?php endif; ?>
<div class="d-flex align-items-center justify-content-between mb-2">
    <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('serial_number')); ?>:</span>
    <span><?php echo e($model->serial_number); ?></span>
</div>

<?php if($model->sold_at || $model->pre_sale): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('sold_at')); ?>:</span>
        <?php if($model->pre_sale): ?>
            <span><?php echo app('translator')->get($model->getLabel('pre_sale')); ?></span>
        <?php else: ?>
            <span><?php echo e($model->sold_at->format(config('crud.formatDate'))); ?></span>
        <?php endif; ?>
    </div>
<?php endif; ?>

<?php if($model->repair_date): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('repair_date')); ?>:</span>
        <span><?php echo e($model->repair_date->format(config('crud.formatDate'))); ?></span>
    </div>
<?php endif; ?>


<?php if($model->additional_info): ?>
    <p class="text-dark-75 mt-8"><?php echo e($model->additional_info); ?></p>
<?php endif; ?>


<?php if($model->closed_at): ?>
    <div class="d-flex align-items-center justify-content-between mb-2 mt-8">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('closed_at')); ?>:</span>
        <span><?php echo e($model->closed_at->format(config('crud.formatDate'))); ?></span>
    </div>
<?php endif; ?>

<?php if($model->category_id): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('category_id')); ?>:</span>
        <span><?php echo e($model->getCategoryName()); ?></span>
    </div>
<?php endif; ?>

<?php if($model->error_code): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('error_code')); ?>:</span>
        <span><?php echo e(empty($model->getErrorGroup()) ? '' : $model->getErrorGroup() . ','); ?> <?php echo e($model->getErrorCode()); ?> <?php echo e($model->getErrorName()); ?></span>
    </div>
<?php endif; ?>

<?php if($model->custom_price || $model->price): ?>
    <div class="d-flex align-items-center justify-content-between mb-2">
        <span class="font-weight-bold mr-2"><?php echo app('translator')->get($model->getLabel('price')); ?>:</span>
        <span><?php echo number_format($model->custom_price ?? $model->price, 2, ',', ' ') . ' ' . session()->get('currencySymbol') ?></span>
    </div>
<?php endif; ?>
<?php if($model->work_description): ?>
    <p class="text-dark-75 mt-8"><?php echo e($model->work_description); ?></p>
<?php endif; ?>
<?php /**PATH /var/www/ipsremont-demo/resources/views/repairs/_repair_data.blade.php ENDPATH**/ ?>