<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->

<!-- Head BEGIN -->
<head>
  @if($title)
  <title>{{$title->report_type}} | Samuhik Saving & Cooperative Ltd.</title>
  @else
   <title>Report |  Samuhik Saving & Co-Operative Society Ltd.</title>
  @endif
@include('Client.Parts.MetaCSS')

 
</head>
<!-- Head END -->
@php
  $data=session('lng');
@endphp
<!-- Body BEGIN -->
<body class="corporate">
  @include('Client.Parts.SocialNetwork')

      @include('Client.Parts.Header')

      <!-- Page header -->
<div class="page-top-section margin-bottom-40">
  <div class="overlay"></div>
  <div class="container text-right">
    <div class="page-info">
      <div class="row">
        <h2 style="text-align: center">Report</h2>
      </div>


      <div class="page-links">
        <a href="{{url("$data")}}">Home</a>
        <a><span>Report</span></a>
          @if($title)
         <span>{{$title->report_type}}</span>
         @else
          @endif
      </div>
    </div>
  </div>
</div>
<!-- Page header end-->

    <div class="main">
      <div class="container">
        <!-- BEGIN SIDEBAR & CONTENT -->
       <div class="row margin-bottom-40">
          <!-- BEGIN CONTENT -->
          <div class="col-md-12 col-sm-12">
             @if($title)
            <h1>{{$title->report_type}}</h1>
             @else
               <h1>No Data</h1>
          @endif
            <div class="content-page">
              <div class="row">
               
                <div class="col-md-12 col-sm-12">
                    <div class="tab-content" style="padding:0; background: #fff;">
                      <!-- START TAB 1 -->
                      <div class="tab-pane active" id="tab_1">
                         <div class="panel-group" id="accordion1">
                          @php
                            $i=1;
                          @endphp

                          @foreach($reports as $report)
                            <div class="panel panel-default">
                               <div class="panel-heading">
                                  <h4 class="panel-title">
                                     <a href="#accordion1_{{$i}}" data-parent="#accordion1" data-toggle="collapse" class="accordion-toggle">
                                    {{$report->title}}
                                     </a>
                                    
                                  </h4>
                               </div>
                               <div class="panel-collapse collapse {{-- in --}}" id="accordion1_{{$i}}">
                                  <div class="panel-body">
                                     <p>{!!$report->description!!}</p>
                                     Click Link To Download File: <a href="{{url('img/Report/'.$report->file_name)}}" download=""  >{{$report->file_name}}</a>
                                  </div>
                               </div>
                            </div>
                            @php
                              $i++;
                            @endphp
                           @endforeach
                    
                         </div>
                      </div>
                      <!-- END TAB 1 -->
                    
                   
                    </div>
                </div>
              </div>
            </div>
          </div>
          <!-- END CONTENT -->
        </div>
      
      </div>
    </div>

@include('Client.Parts.FooterJs')
</body>
<!-- END BODY -->
</html>
