{{-- logo --}}

Brand Profile

  • edit
  • delete
  • close
@method('DELETE') @csrf
{{-- --}} @php $Imageurl = $brand_detail->media_url; if(isset($brand['brand_logo'])){ $getMedia = $brand['brand_logo'][0]->media()->latest()->first(); if($getMedia){ if($getMedia->hasGeneratedConversion('thumb')){ $Imageurl = $getMedia->getUrl('thumb'); }else{ $Imageurl = $getMedia->getUrl(); } } } @endphp @if(in_array(pathinfo($Imageurl, PATHINFO_EXTENSION), $imgExtensions)) @else @endif

{{ $brand_detail->brand_title ?? '' }}

@if(isset($brand['url'])) @foreach($brand['url'][0]->decoded_value ?? [] as $key => $url)

{{ $url ?? '' }}

@endforeach @endif

{{ $brand_detail->brand_description }}

@if(isset($brand['fonts'])) @foreach($brand['fonts'][0]->decoded_value ?? [] as $key => $font)

{{ $font ?? '' }}

@endforeach @endif
@if(isset($brand['color_code'])) @foreach($brand['color_code'][0]->decoded_value ?? [] as $key => $color)
{{ $color ?? '' }} {{-- close --}}
@endforeach @endif
@if(isset($brand['brand_logo']))
@foreach($brand['brand_logo'][0]->media ?? [] as $key => $image)
@php //$fileMeta = $brand['brand_logo'][0]; //$mediaId = $fileMeta->media->first(); $thumb = null; $image_url = $image->getUrl(); if($image && $image->hasGeneratedConversion('thumb')){ $thumb = $image->getUrl('thumb'); } // if($mediaId){ // if($mediaId->hasGeneratedConversion('thumb')){ // $thumb = $mediaId->getUrl('thumb'); // }else{ // $image_url = $mediaId->getUrl(); // } // } @endphp @include('inc.image-hover-download',['image_url' => $image_url, 'route_url' => 'download-file', 'img_path' => $image->id, 'thumb' => $thumb, 'meta_id' => $brand['brand_logo'][0]->id])
@endforeach
@endif @if(isset($brand['old_brand_logo'])) @php $OldLogoValue = $brand['old_brand_logo'][0]->decoded_value; @endphp @if(count($OldLogoValue) > 0)
    @foreach ($OldLogoValue ?? [] as $logo)
  • @php $Imageurl = Storage::disk('s3_gz')->url($logo); @endphp @include('inc.image-hover-download',['image_url' => $Imageurl, 'route_url' => 'old-file-download', 'img_path' => $logo, 'meta_id' => $brand['old_brand_logo'][0]->id])
  • @endforeach
@endif @endif @if(isset($brand['marketing_material']))
@foreach($brand['marketing_material'][0]->media ?? [] as $key => $image)
@php $thumb = null; if($image && $image->hasGeneratedConversion('thumb')){ $thumb = $image->getUrl('thumb'); } @endphp @include('inc.image-hover-download',['image_url' => $image->getUrl(), 'route_url' => 'download-file', 'img_path' => $image->id, 'thumb' => $thumb, 'meta_id' => $brand['marketing_material'][0]->id])
@endforeach
@endif @if(isset($brand['old_marketing_material'])) @php $oldMarketingFiles = $brand['old_marketing_material'][0]->decoded_value; @endphp @if(count($oldMarketingFiles) > 0)
@foreach($oldMarketingFiles ?? [] as $key => $image)
@php $Imageurl = Storage::disk('s3_gz')->url($image); @endphp @include('inc.image-hover-download',['image_url' => $Imageurl, 'route_url' => 'old-file-download', 'img_path' => $image, 'meta_id' => $brand['old_marketing_material'][0]->id])
@endforeach
@endif @endif @if(isset($brand['additional_images']))
@foreach($brand['additional_images'][0]->media ?? [] as $key => $image)
@php $thumb = null; if($image && $image->hasGeneratedConversion('thumb')){ $thumb = $image->getUrl('thumb'); } @endphp @include('inc.image-hover-download',['image_url' => $image->getUrl(), 'route_url' => 'download-file', 'img_path' => $image->id, 'thumb' => $thumb, 'meta_id' => $brand['additional_images'][0]->id])
@endforeach
@endif @if(isset($brand['old_additional_images'])) @php $oldAdditionalFiles = $brand['old_additional_images'][0]->decoded_value; @endphp
@foreach($oldAdditionalFiles ?? [] as $key => $image)
@php $Imageurl = Storage::disk('s3_gz')->url($image); @endphp @include('inc.image-hover-download',['image_url' => $Imageurl, 'route_url' => 'old-file-download', 'img_path' => $image, 'meta_id' => $brand['old_additional_images'][0]->id])
@endforeach
@endif