@extends('layouts.master2')
@section('scriptDataLayer')
@endsection
@section('meta')
@endsection
@section('pageHeader')
@if (!empty($deals->discount))
{{ $deals->discount }}%
@endif
@if (count($deals->images) > 0)
@foreach($deals->images as $img)
@endforeach
@else

@endif
@if(isset($deals->giveaway_ID))
@php
$giveawayUrl = url('giveaway?giftId='.$deals->giveaway_ID);
if($user) {
$giveawayUrl = url('giveaway/bridge?giftId='.$deals->giveaway_ID);
}
@endphp
@if ($user)
@else
@endif
@endif
@if(!empty($deals->discount))
{{ $deals->discount }}%
@endif
@if (count($deals->images) > 0)
@foreach($deals->images as $img)
@endforeach
@else

@endif
@if(isset($deals->giveaway_ID))
@php
$giveawayUrl = url('giveaway?giftId='.$deals->giveaway_ID);
if($user) {
$giveawayUrl = url('giveaway/bridge?giftId='.$deals->giveaway_ID);
}
@endphp
@if ($user)
@else
@endif
@endif
{{ $deals->name }}
Berlaku Hingga : {{ date('d F Y', strtotime($deals->expired_date)) }}
{{--
 }})
--}}
@if($user)
@endif
@if ($deals->coupon_code)
@endif
@if (!empty($deals->start_price) && !empty($deals->final_price))
{{ 'Rp '.number_format($deals->start_price, 0, ",", ".") }} {{ 'Rp '. number_format($deals->final_price, 0, ",", ".") }}
@endif
{{--
--}}
@if($deals->url != "" && $deals->url != "https://www.giladiskon.com/")
@if ($deals->expired_date > \Carbon\Carbon::now())
@else
Expired
@endif
@endif
name) }}'"
:deals_id="{{ $deals->id }}">
@if ($deals->tags)
@endif
@if(!empty($deals->merchant_id))
@endif
{{--
Tentang Deals
{!! $deals->description !!}
--}}
@if (isset($deals->description))
{{-- @if (strlen(trim(strip_tags($deals->description))) > 250)
{{ Str::limit(trim(strip_tags($deals->description)), 250, '') }}
...
{{ substr(trim(strip_tags($deals->description)), 200) }}
read more
@else
@endif --}}
{!! $deals->description !!}
@endif
{{--
--}}
@livewire('section', ['cookie' => $cookie])
@endsection
@section('mobileMenu')
@php
$message = urlencode($deals->name."\r\n". url()->full());
@endphp
@if($deals->url != "" && strpos($deals->url, "www.giladiskon.com") === false )