@extends('layouts.customer') @section('content')

Offers

Offer

##{{ $offer->id ?: '' }}

{{ $offer->title ?? '' }}

{{ ucfirst( $offer->elligible ?? '' ) }}

{{ $offer->description ?? '' }}

@if($offer->activities)
@foreach($offer->activities as $activity)
{{ $activity->title ?? '' }}

{{ $activity->description ?? '' }}

@endforeach
@endif

@if( '1' == $offer->offer_type ) {{ 'Product' }} @else {{ 'Discount' }} @endif

@if( '1' == $offer->offer_type )

{{ $offer->product->product_name ?? '' }}

@else

@if( '0' == $offer->discount_type ) {{ 'Flat' }} @elseif( '1' == $offer->discount_type ) {{ 'Percentage' }} @endif

{{ $offer->discount }} @if( '1' == $offer->discount_type ) {{ '%' }} @endif

@endif

@if( is_null($offer->expiry_date) ) No expiration @endif @if( $offer->expiry_date ) {{ date('F j, Y', strtotime($offer->expiry_date)) }} @endif

@endsection