@if($community->present()->canManage())
@php $communityPresenter = $community->present(); $publicRaw = $biz->public_status ?? $biz->public ?? $biz->is_public ?? null; $publicNormalized = is_string($publicRaw) ? strtolower(trim($publicRaw)) : $publicRaw; $isActive = false; if (is_bool($publicNormalized)) { $isActive = $publicNormalized; } elseif (is_numeric($publicNormalized)) { $isActive = ((int) $publicNormalized) > 0; } elseif (is_string($publicNormalized)) { $isActive = in_array($publicNormalized, ['1','true','active','yes','y','on'], true); } $imgUrl = function ($path) { $path = (string) $path; if ($path === '') { return ''; } try { return (string) \Image::url($path); } catch (\Throwable $e) { return $path; } }; $squareUrl = $imgUrl($biz->business_logo_square ?? ''); $rectUrl = $imgUrl($biz->business_logo_rectangle ?? ''); $heroUrl = $imgUrl($biz->hero_photo ?? ''); @endphp
Edit Association Member Back
{{ csrf_field() }}
@php $selectedCategory = old('val.category', $biz->category); $selectedCategory = is_numeric($selectedCategory) ? (string) ((int) $selectedCategory) : (string) $selectedCategory; @endphp
Drag & drop image here or click to select
@if(!empty($squareUrl)) Current business logo (square) @endif
Drag & drop image here or click to select
@if(!empty($rectUrl)) Current business logo (rectangle) @endif
Drag & drop image here or click to select
@if(!empty($heroUrl)) Current hero photo @endif
Start
End
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
{{trans('business.to-hrs')}}
@endif