@extends('layouts.app') @section('title') {{ __('messages.Product') }} @endsection @section('head') @endsection @section('css') @endsection @section('content')

{{ __('messages.Product') }}

@csrf
@foreach ($languages as $language) @php $name = isset($product->name) ? $product->name[$language] : ''; @endphp
@error('name_' . $language) {{ $message }} @enderror
@endforeach
@error('productgroup_id') {{ $message }} @enderror
@error('ean') {{ $message }} @enderror
@error('reference') {{ $message }} @enderror
@error('stock') {{ $message }} @enderror
@php $images = $product->images??[]; @endphp @foreach ($images as $key => $image) @php $path = public_path('storage/products/images/'.$image); $type = pathinfo($path, PATHINFO_EXTENSION); $data = @file_get_contents($path); $base64 = 'data:image/' . $type . ';base64,' . base64_encode($data); @endphp @if($data)
×
@endif @endforeach
@foreach($product->package_shot??[] as $package_shot) @endforeach
@foreach($product->documents??[] as $documents) @endforeach
@foreach($product->videos??[] as $videos) @endforeach
@if(isset($product->location)) @foreach($product->location as $key => $value)
@endforeach @endif
@endsection @section('script') @endsection