<div class="col-md-6">


<h5>{{$text[$type]}} Form Preview:</h5>
<hr>

<div class="form-row m-0 ">
@if ($type == 'eprint')
	@php  
		unset($field[2]);
		unset($field[3]);
		$field = array_values($field);
	@endphp
@endif

		@if(isset($preview))
		@foreach($preview as $k => $v)

			@if(isset($v))
				<label class="control-label col-md-4 p-2 border-bottom">
					<strong>
							@if($type == "eprint" && $field[$loop->index]=="Reprint Copies") 
								ePrint Copies 
							@else 
								{{ $field[$loop->index] }} 
							@endif
					</strong>
				</label>
				<label class="control-label col-md-6 p-2 border-bottom">{{$v}}</label><br>
			@endif
			
			<input type="hidden" name="preview[{{$k}}]" value="{{$v}}">
		@endforeach
		@endif
	
@if($thankyou == false)	
		<div class="control-label col-md-12 p-2">
			<button class="btn btn-default border-dark" name="back" value="true" >Back</button>
			<button class="btn btn-primary" name="submit" type="submit" value="true">Submit</button>
		</div><br>
		
	</div>		
@endif

</div>

