File: /var/www/ipsremont-demo/storage/framework/views/c75c08b4a1dd004b69cc1f3d8f37169f1a88524c.php
<?php
/**
* @var Part $part
* @var object $store
* @var int $storeCount
* @var Collection $analogs
* @var array $columns
* @var Branch $central
* @var $user
*/
use App\Models\Branch;
use App\Models\Part;
use App\Models\Permission;
use Illuminate\Database\Eloquent\Collection;
?>
<?php $__env->startSection('title'); ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => 'parts.showPage']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'parts.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' => $part->getName()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="card card-custom gutter-b">
<div class="card-body">
<div class="d-flex">
<?php if($part->getImage()): ?>
<div class="flex-shrink-0 mr-7 mt-lg-0 mt-3">
<div class="">
<img src="<?php echo e($part->getImage()); ?>" class="rounded mw-100 w-300px">
</div>
</div>
<?php endif; ?>
<div class="flex-grow-1">
<div class="d-flex align-items-center justify-content-between flex-wrap">
<div class="mr-3">
<h3 class="font-size-xlg text-dark font-weight-bold mb-6">
<?php echo e($part->getFullName( )); ?>
<i class="flaticon2-correct text-dark-60 icon-md ml-2"></i></h3>
<div class="d-flex flex-wrap my-4">
<span class="font-weight-bolder font-size-h2 text-warning"><?php echo e($part->getPriceConverted()); ?></span>
</div>
</div>
</div>
<?php if(can([Permission::orders, Permission::actions])): ?>
<div class="d-flex align-items-center flex-wrap justify-content-between">
<div class="d-flex flex-wrap align-items-center py-6">
<div class="d-flex align-items-center mr-10">
<div class="mr-6">
<div class="input-group">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.input.text','data' => ['type' => 'text','id' => 'cart-amount','name' => 'cart-amount','value' => '1','required' => 'true','autocomplete' => 'off','placeholder' => '','error' => ''.e($error ?? false).'']]); ?>
<?php $component->withName('input.text'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['type' => 'text','id' => 'cart-amount','name' => 'cart-amount','value' => '1','required' => 'true','autocomplete' => 'off','placeholder' => '','error' => ''.e($error ?? false).'']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<button id="add-to-cart" data-token="<?php echo e(csrf_token()); ?>" data-id="<?php echo e($part->id); ?>" type="submit" class="btn btn-warning text-uppercase font-weight-bold ml-3">
<?php echo app('translator')->get('parts.toCart'); ?>
</button>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="flex-grow-1">
<div class="d-flex align-items-center justify-content-between flex-wrap">
<div class="">
<h4 class="text-dark font-weight-bold mb-6"><?php echo app('translator')->get('parts.titleStorage'); ?></h4>
<div class="font-size-lg">
<?php echo $__env->make('parts._warehouses', ['store' => $store, 'user' => $user, 'model' => $part, 'central' => $central], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
</div>
</div>
</div> <!-- card-body -->
</div>
</div> <!-- container -->
</div> <!-- flex-column-fluid -->
<?php if($analogs): ?>
<div class="d-flex flex-column-fluid">
<div class="container">
<div class="row">
<div class="col-lg-12 с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 app('translator')->get('parts.analogs'); ?></h3>
</div>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body ">
<?php echo $__env->make('parts._table', ['data' => $analogs], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!--end::Body-->
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div> <!-- content -->
<?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/parts/show.blade.php ENDPATH**/ ?>