@if($item->id && $item->part)
Fényképek
@php
$photos = $item->photos;
@endphp
@if( $item->part_id == 1 )
@include('product.form.car')
Alkatrészfa
@include('product.tree')
@else
@include('product.form.part')
@endif
@endif
{{-- @php
$relation_data = $item->relationships('HasMany')['photos'];
$photo = new App\Models\Photo;
$photo['product_id'] = $item->id;
$photo['type'] = 'Fő fotó';
$data = (new App\Http\Controllers\Admin\PhotoController)->__view_create(
$photo,
[
'product_id='.$item->id,
'type="Fő fotó"',
])['data'];
@endphp
@include('admin.layout.form', $data) --}}
{{-- Fényképek
@foreach ($item->photos as $photo)
@endforeach
@php
$formId = 'product_photo_'.rand(0,100);
@endphp
@include('admin.form.columns.photo', ['name' => 'image', 'value' => ''])
@endif --}}