@extends('frontend.layouts.app') @section('content') @if( isset( $preview->preview_data ) ) @php $flyers = json_decode( $preview->preview_data ); //dump($flyers); // dump( count ( (array) $flyers->flyers_option_a ) ); // exit; @endphp
@if( isset( $flyers->event_start_date ) && isset( $flyers->event_end_date ) )

Flyers

Valid from {{ date( 'F j, Y', strtotime( $flyers->event_start_date ) ) }} to {{ date( 'F j, Y', strtotime( $flyers->event_end_date ) ) }}
@endif
@if( isset( $flyers->coupon_start_date ) && isset( $flyers->coupon_end_date ) )

Coupon

Valid from {{ date( 'F j, Y', strtotime( $flyers->coupon_start_date ) ) }} to {{ date( 'F j, Y', strtotime( $flyers->coupon_end_date ) ) }}
@endif
@if( isset( $flyers->option_c_start_date ) && isset( $flyers->option_c_end_date ) )

Page Flyers

Valid from {{ date( 'F j, Y', strtotime( $flyers->option_c_start_date ) ) }} to {{ date( 'F j, Y', strtotime( $flyers->option_c_end_date ) ) }}

{{ $flyers->website }}

@endif
@endif @endsection @section('head-css') @endsection @section('scripts') @endsection