<div class="category_picto">
  @if(!empty($category->copy_id))
  @php
  $category = App\Models\Category::findOrFail($category->copy_id);
  @endphp
  @if(isset($category->image) && !empty($category->image))
  <img src="{{ asset('storage/categories/' . $category->image) }}" class="" style="width: 50px">
  @else
  <img src="{{ asset('images/no-photo.jpg') }}" style="width: 50px;">
  @endif

  @else

  <a href="{{ route('backend.categories.image', $category->id) }}" data-toggle="modal" data-target="#modal">
    @if(isset($category->image) && !empty($category->image))
    <img src="{{ asset('storage/categories/' . $category->image) }}" class="" style="width: 50px">
    @else
    <img src="{{ asset('images/no-photo.jpg') }}" style="width: 50px;">
    @endif
  </a>
  @endif
</div>