@if($holidays->isNotEmpty() && setting('24hoursbusinessswitch') != 'on')
@foreach ($holidays as $anct)
{{-- @dump($anct->holidaydescription,$anct->occasion,$anct->status) --}}
@if ($anct->status == 1)
{{$anct->occasion}}
{!!$anct->holidaydescription!!}
@if($anct->buttonon == 1)
{{$anct->buttonname}}
@endif
@endif
@endforeach
@endif
@if(setting('ANNOUNCEMENT_USER') == 'non_login_users' && Auth::guard('customer')->check() == false || setting('ANNOUNCEMENT_USER') == 'all_users')
@foreach ($announcement as $anct)
@if ($anct->status == 1)
{{$anct->title}}
{!!$anct->notice!!}
@if($anct->buttonon == 1)
{{$anct->buttonname}}
@endif
@if ($anct->buttonlable != null && $anct->buttonurl != null)
@endif
@endif
@endforeach
@foreach ($announcements as $ancts)
@php
$announceDay = explode(',', $ancts->announcementday);
$now = today()->format('D');
@endphp
@foreach ($announceDay as $announceDays)
@if ($ancts->status == 1 && $announceDays == $now)
{{$ancts->title}}
{!!$ancts->notice!!}
@if($ancts->buttonon == 1)
{{$ancts->buttonname}}
@endif
@if ($ancts->buttonlable != null && $ancts->buttonurl != null)
@endif
@endif
@endforeach
@endforeach
@else
@if(setting('ANNOUNCEMENT_USER') == 'only_login_user' && Auth::guard('customer')->check() == true)
@foreach ($announcement as $anct)
@if ($anct->status == 1)
@endif
@endforeach
@foreach ($announcements as $ancts)
@php
$announceDay = explode(',', $ancts->announcementday);
$now = today()->format('D');
@endphp
@foreach ($announceDay as $announceDays)
@if ($ancts->status == 1 && $announceDays == $now)
@endif
@endforeach
@endforeach
@endif
@endif