File: /var/www/ipsremont-demo/storage/framework/views/18d1746dff0b5d958548dbc2412a7dc48857e10b.php
<?php
/**
* @var Device $device
*/
use App\Models\Device;use App\Models\Schema;
?>
<?php $__env->startSection('title'); ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => ''.e($device->getNumber() . ' ' . __($device->getName())).'']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => ''.e($device->getNumber() . ' ' . __($device->getName())).'']); ?> <?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' => $device->getNumber()], \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($device->getImage()): ?>
<div class="flex-shrink-0 mr-7 mt-lg-0 mt-3">
<div class="">
<img src="<?php echo e($device->getImage()); ?>" data-image="<?php echo e($device->getImage()); ?>" class="rounded mw-100 w-150px js-gallery-main">
</div>
</div>
<?php endif; ?>
<div class="flex-grow-1">
<!--begin: Title-->
<div class="d-flex align-items-center justify-content-between flex-wrap">
<div class="mr-3">
<!--begin::Name-->
<h3 class="font-size-xlg text-dark font-weight-bold mb-6">
<?php echo e($device->getNumber()); ?> <?php echo e($device->getName()); ?>
<i class="flaticon2-correct text-dark-60 icon-md ml-2"></i></h3>
<!--end::Name-->
<h3 class="font-size-lg text-dark font-weight-bold mb-6">
<?php echo e($device->getManufacturer()); ?>
</h3>
<?php if($device->getSpecification()): ?>
<a class="font-size-lg" href="<?php echo e(route('specifications.download', $device->getSpecification())); ?>" target="_blank">
<?php echo app('translator')->get('specifications.specification'); ?>
<i class="flaticon-download font-weight-bold text-primary icon-md ml-2"></i>
</a>
<?php endif; ?>
<?php if(@$device->getImageGallery()): ?>
<?php $__currentLoopData = $device->getImageGallery(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="symbol symbol-60 flex-shrink-0 mr-4 bg-light mt-3" style="padding-top: 0.1rem;">
<div data-image="<?php echo e($image); ?>" class="js-gallery-small symbol-label" style="background-image: url('<?php echo e($image); ?>')"></div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
</div>
<!--end: Title-->
</div> <!-- flex-grow-1 -->
</div>
</div> <!-- card-body -->
</div> <!-- end::product card -->
<?php if(!$device->parts->isEmpty()): ?>
<div class="d-flex flex-row mb-10">
<div class="flex-row-fluid mr-lg-8">
<div class="card card-custom">
<!--begin::Body-->
<div class="card-body py-0">
<br>
<div class="card-title">
<h3 class="card-label"><?php echo app('translator')->get('specifications.spare_parts_list'); ?></h3>
</div>
<?php echo $__env->make('specifications._table', ['data'=> $device, 'type' => 'device'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!--end::Table-->
</div>
<!--end::Body-->
</div>
</div> <!-- end::parts -->
</div> <!-- end::schema container -->
<?php endif; ?>
<?php $__currentLoopData = $device->schema; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $schema): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php /** @var Schema $schema */ ?>
<?php if(sizeof($schema->getParts()) > 0): ?>
<div class="d-flex flex-row mb-10">
<div class="flex-row-fluid mr-lg-8">
<div class="card card-custom">
<!--begin::Header-->
<div class="card-header border-0 py-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label font-weight-bolder text-dark"><?php echo e($schema->getName()); ?></span>
<span class="text-muted mt-3 font-weight-bold font-size-sm"><?php echo app('translator')->get('specifications.spare_parts_list'); ?></span>
</h3>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-0">
<?php echo $__env->make('specifications._table', ['data' => $schema, 'type' => 'schema'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!--end::Body-->
</div>
</div> <!-- end::parts -->
<div class="flex-column offcanvas-mobile" id="kt_profile_aside">
<div class="card card-custom gutter-b">
<div class="card-body">
<div class="flex-shrink-0 mt-lg-0 mt-3">
<a target="_blank" href="<?php echo e($schema->getImage()); ?>">
<img class="mw-100 w-350px" src="<?php echo e($schema->getImage()); ?>">
</a>
</div>
</div>
</div>
</div> <!--end::schema image-->
</div> <!-- end::schema container -->
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div> <!-- container -->
</div> <!-- flex-column-fluid -->
</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/specifications/device.blade.php ENDPATH**/ ?>