<?php  header("Content-Type: application/vnd.ms-word");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=Report.doc");
?>
 <link rel="stylesheet" href="{{ asset('vendor/adminlte/vendor/bootstrap/dist/css/bootstrap.min.css') }}">

<!--  word format    -->
 <div class="form-group">


 			<input type="hidden" name="_token" value="{{ csrf_token() }}">

                   <input type="hidden" name="fileview_template_id" id="fileview_template_id" value="">

            @foreach($word_arr as $word)

            	@if($word->top)
                <div class="col-md-12" style="text-align: left;">
                {{$word->template->top}} : {{$word->top}}
                </div>
                @endif
                <div class="col-md-12" style="text-align: left;">
                <div class="col-md-4">
                @if($word->top1)
                
                {{$word->template->top1}} : {{$word->top1}}
                
                @endif
                </div>

                <div class="col-md-4">
                @if($word->top2)
                
                {{$word->template->top2}} : {{$word->top2}}
                
                @endif
                </div>

                 <div class="col-md-4">
                @if($word->top3)
               
                {{$word->template->top3}} : {{$word->top3}}
                
                @endif
                </div>
                </div>

                @if($word->mid)
                <div class="col-md-12">
                {{$word->template->mid}} : {{$word->mid}}
                </div>
                @endif
                <div class="col-md-12">
                <div class="col-md-4">
                @if($word->mid1)
                
                {{$word->template->mid1}} : {{$word->mid1}}
                
                @endif
                </div>
                 <div class="col-md-4">
                @if($word->mid2)
               
                {{$word->template->mid2}} : {{$word->mid2}}
                
                @endif
                </div>
                  <div class="col-md-4">
                @if($word->mid3)
              
                {{$word->template->mid3}} : {{$word->mid3}}
               
                @endif
                 </div>
                 </div>
                @if($word->bottom)
                <div class="col-md-12">
                {{$word->template->bottom}} : {{$word->bottom}}
               </div>
                @endif
                 <div class="col-md-12">
                 <div class="col-md-4">
                @if($word->bottom1)
               
                {{$word->template->bottom1}} : {{$word->bottom1}}
              
                @endif
                 </div>
                 <div class="col-md-4">
                @if($word->bottom2)
               
                {{$word->template->bottom2}} : {{$word->bottom2}}
                
                @endif
                </div>
                 <div class="col-md-4">
                @if($word->bottom3)
                
                {{$word->template->bottom3}} : {{$word->bottom3}}
              
                @endif
    			</div>
    			</div>
            @endforeach



        </div>