<?php if(isset($chooseYear)): ?>
<div class="form-body" style="background-color: white;height:10vh;">
	<blockquote style="font-size: 4vh;">選擇年份</blockquote>
</div>
<div class="form-body" style="background-color: white;height:15vh;">
	<div class="modal-body" style="background-color: white;">
		<?php foreach($chooseYear as $value): ?>
			<button target="_blank" class="btn_month_report" style="font-size: 2vh;margin-left: 1vw;background-color: #FFCF78;" value="<?php echo e($value); ?>" onclick="window.open('<?php echo e(route('finance::report_download',['view' => $view ,'selectY' => $value])); ?>')" target="_blank"><?php echo e($value); ?></button>
		<?php endforeach; ?>
	</div>	
</div>
<input type="hidden" id="select_y" value="">
<input type="hidden" id="views" value="<?php echo e($view); ?>">
<?php else: ?>
<div class="form-body" style="background-color: white;height:10vh;">
	<a href="<?php echo e(route('finance::report_download',['view' => $view,'selectY' => '0'])); ?>" target="_blank" class="btn btn-danger" id="btn_download" style="font-size: 2vh;margin-left: 1vw;">下載</a>
</div>
<?php endif; ?>