@if(count($business->businessImages) > 0) @foreach ($business->businessImages as $key => $businessImages) @if($loop->first) @endif @endforeach @else @endif
@if($business->businessImages) @foreach ($business->businessImages as $key => $businessImages) @if($loop->iteration > 1 && $loop->iteration <= 3) @endif @if(!$loop->last && $loop->iteration > 3) @endif @if($loop->last && $loop->iteration > 3) @endif @endforeach @endif
@if($business->businessImages) @foreach ($business->businessImages as $key => $businessImages) @if($loop->last && $loop->iteration > 3)

user_id/$businessImages->name")}}" class="glightbox group rounded-md inline-block border border-neutral-400 bg-white py-2 px-6 text-[15px] text-neutral-500 font-bold z-40 hover:border-neutral-400 hover:bg-neutral-400 hover:text-neutral-50 transition-all"> Show all photos

@endif @endforeach @endif

{{ $business->business_name }}

{{ $business->businessType->name }}

@if ((Auth::user()->role_id == 1) || (Auth::user()->role_id == 2 && $business->id == Auth::user()->business->id)) @endif {{-- --}}
@if(auth()->check()) @can('viewPremiumContent', auth()->user())

Chat with us

@else

Chat with us

@endcan @endif

Description:

{{ $business->description }}

Working hours

    @foreach( $business->workingHours as $workingHours)
  • {{ $workingHours->day }} @if ($workingHours->is_opened) {{ $workingHours->open_time }} - {{ $workingHours->close_time }} @else Closed @endif
  • @endforeach

Location

  • {{ $business->address }}, {{ $business->city }}, {{ $business->state }}, {{ $business->country }}

Phone

  • {{ $business->phone_number }}

Email

  • {{ $business->email }}

Website

{{--
--}} {{-- Clicked link counters --}} @livewire('business.click-counters') @php // Get the last word from the website link function getLastWord($string) { $words = explode('/', $string); $words = array_filter($words); // remove empty spaces return array_pop($words); } @endphp

Socials

  • @if($business->instagram_link)

    @if (substr($business->instagram_link, 0, 8) === 'https://' || substr($business->instagram_link, 0, 4) === 'www.') @php $business->instagram_link = getLastWord($business->instagram_link); @endphp @endif {{ $business->instagram_link }}

    @endif
  • @if($business->facebook_link)

    @if (substr($business->facebook_link, 0, 8) === 'https://' || substr($business->facebook_link, 0, 4) === 'www.') @php $business->facebook_link = getLastWord($business->facebook_link); @endphp @endif {{ $business->facebook_link }}

    @endif
  • @if($business->linkedin_link)

    @if (substr($business->linkedin_link, 0, 8) === 'https://' || substr($business->linkedin_link, 0, 4) === 'www.') @php $business->linkedin_link = getLastWord($business->linkedin_link); @endphp @endif {{ $business->linkedin_link }}

    @endif
  • @if($business->tiktok_link)

    @if (substr($business->tiktok_link, 0, 8) === 'https://' || substr($business->tiktok_link, 0, 4) === 'www.') @php $business->tiktok_link = getLastWord($business->tiktok_link); @endphp @endif {{ $business->tiktok_link }}

    @endif

On the map

{{-- mapata da e visoka 550px, ova e pogolema za da ne klavam nova slika, iskoristiv so imav --}} {{-- --}}
@push('scripts') {{-- --}} @endpush