@extends('layouts.app') @section('content')

{{ $item ? 'Позиция '.$item->article : 'Новая позиция общего каталога' }}

@if($item)
@if(hasPermission('common-catalog.image.upload'))
@csrf
@endif
@endif
@if($item?->imageFile)
{{ $item->article }} @if(hasPermission('common-catalog.image.delete'))
@csrf @method('DELETE')
@endif
@endif
@csrf @if($item) @method('PUT') @endif
@include('partials.input', ['name' => 'article', 'title' => 'Артикул', 'required' => true, 'value' => $item?->article])
@error('calculator_name')
{{ $message }}
@enderror
@include('partials.input', ['name' => 'kind', 'title' => 'Вид', 'value' => $item?->kind]) @include('partials.input', ['name' => 'dimensions', 'title' => 'Габаритные размеры', 'value' => $item?->dimensions]) @include('partials.input', ['name' => 'fall_height', 'title' => 'Высота падения', 'type' => 'number', 'min' => 0, 'step' => '0.001', 'value' => $item?->fall_height]) @include('partials.input', ['name' => 'dimension_unit', 'title' => 'Единица измерения габаритов', 'value' => $item?->dimension_unit]) @include('partials.input', ['name' => 'weight', 'title' => 'Вес, кг.', 'type' => 'number', 'min' => 0, 'step' => '0.001', 'value' => $item?->weight]) @include('partials.input', ['name' => 'volume', 'title' => 'Объем, м3', 'type' => 'number', 'min' => 0, 'step' => '0.001', 'value' => $item?->volume]) @include('partials.input', ['name' => 'places', 'title' => 'Места', 'type' => 'number', 'min' => 0, 'step' => 1, 'value' => $item?->places]) @include('partials.input', ['name' => 'max_users', 'title' => 'Макс. кол-во пользователей', 'type' => 'number', 'min' => 0, 'step' => 1, 'value' => $item?->max_users])
@include('partials.input', ['name' => 'age_group', 'title' => 'Возрастная группа', 'value' => $item?->age_group]) @include('partials.input', ['name' => 'unit', 'title' => 'Ед.', 'value' => $item?->unit]) @include('partials.input', ['name' => 'series', 'title' => 'Серия', 'value' => $item?->series]) @include('partials.input', ['name' => 'trademark', 'title' => 'ТМ', 'value' => $item?->trademark]) @foreach([ 'additional_info' => 'Дополнительные сведения', 'composition' => 'Состав', 'note' => 'Примечание', ] as $field => $label)
@error($field)
{{ $message }}
@enderror
@endforeach
@if(($item && hasPermission('common-catalog.update')) || (!$item && hasPermission('common-catalog.create'))) @endif Назад
@if($item)
Документы @if(hasPermission('common-catalog.documents.upload'))
@csrf
@endif
@forelse($item->documents as $document)
{{ $document->original_name }} @if(hasPermission('common-catalog.documents.delete'))
@csrf @method('DELETE')
@endif
@empty Документы не загружены. @endforelse
Техническое описание
Блок подготовлен к подключению данных и выгрузок из готового Laravel-модуля технических описаний.
@if(hasPermission('common-catalog.delete'))
@csrf @method('DELETE')
@endif @endif
@endsection