@php $flyers_option_a = App\Models\FlyerOptions::where('type',1)->where('ad_id',$ad->id)->get(); $flyers_option_b = App\Models\FlyerOptions::where('type',2)->where('ad_id',$ad->id)->get(); $flyers_option_c = App\Models\FlyerOptions::where('type',3)->where('ad_id',$ad->id)->get(); $module_folder = 'flyers'; @endphp
@csrf()

1. Flyer Details

@if( isset( $ad->featured_image ) ) @endif
Select Image Change Remove

2. Contact Info

3. Flyer Option A - 1 or 2 Page Flyer

flyers_option_1 == 1 ? 'checked' : '' }}>
flyers_option_1 == 1 ? '' : 'style="display:none;"' !!}>
flyers_option_1 == 1 ? '' : 'style="display:none;"' !!} > @if( isset($flyers_option_a) && count($flyers_option_a) > 0 ) @foreach( $flyers_option_a as $key => $list1)
@if( isset( $list1->image )) @endif
Select Image Change Remove
@if( $key != 0 ) @endif
@endforeach @else
Select Image Change Remove
@endif
flyers_option_1 == 1 ? '' : 'style="display:none;"' !!}>

4. Flyer Option B - Coupon

flyers_option_2 == 1 ? 'checked' : '' }}>
flyers_option_2 == 1 ? '' : 'style="display:none;"' !!}>
flyers_option_2 == 1 ? '' : 'style="display:none;"' !!}> @if( isset($flyers_option_b) && count($flyers_option_b) > 0 ) @foreach( $flyers_option_b as $key => $list2)
@if( isset( $list2->image )) @endif
Select Image Change Remove
@if( $key != 0 ) @endif
@endforeach @else
Select Image Change Remove
@endif
flyers_option_2 == 1 ? '' : 'style="display:none;"' !!}>

5. Flyer Option C - Multiple Page Flyer

flyers_option_3 == 1 ? 'checked' : '' }}>
flyers_option_3 == 1 ? '' : 'style="display:none;"' !!}>
flyers_option_3 == 1 ? '' : 'style="display:none;"' !!}> @if( isset($flyers_option_c) && count($flyers_option_c) > 0) @foreach( $flyers_option_c as $key => $list3)
@if( isset( $list3->image )) @endif
Select Image Change Remove
@if( $key != 0 ) @endif
@endforeach @else
Select Image Change Remove Row
@endif
flyers_option_3 == 1 ? '' : 'style="display:none;"' !!}>

multiple_page_enable == 1 ? 'checked' : '' }}>
multiple_page_enable == 0 ? 'checked' : '' }}>
flyers_option_3 == 1 ? '' : 'style="display:none;"' !!}>
@section('head-css') @endsection @section('scripts') @endsection