@if(isset($brand))
@php
    $path = 'public/brands/'. $brand->logo;
@endphp
<div style="margin-bottom: 20px;">  
  @if(isset($brand->logo) && !empty($brand->logo) && \File::exists(storage_path('app/' . $path)))
      <img src="{{ asset('storage/brands/'.$brand->logo) }}" @if(isset($width)) style="width: 80px;" @else class="img-responsive" @endif>
  @else
      <img src="{{ asset('images/no-photo.jpg') }}" @if(isset($width)) style="width: 80px;" @else class="img-responsive" @endif>
  @endif
</div>
@else
<img src="{{ asset('images/no-photo.jpg') }}" @if(isset($width)) style="width: 80px;" @else class="img-responsive" @endif>
@endif