@extends('main')
@section('css')

<link href="{{ asset('/css/bootstrapValidator.min.css')}}" rel="stylesheet">
@endsection

@section('content')
<section class="main_content">
    <div class="container">
    <ol class="breadcrumb cust-breadcrumb">
              <li><a href="{{url('/')}}">Home</a></li>
              <li class="active">{{ucwords($page['page_title'])}}</li>
            </ol>
      <div class="row talent_home">
        <div class="col-md-12 col-sm-12">
          <div class="rt-panel-block">
        <div class="my-profiles-block"> 
          <h1 class="heading pull-left mbot10">{{ucwords($page['page_title'])}}</h1>
          
          <div class="row">
              <div class="clearfix"></div>
              @if (Session::has('message'))

            <p>{{ Session::get('message') }}</p>

            @endif
            
              @if (Session::get('error_msg'))
                <div class="col-md-12">
                  <div class="alert alert-danger">
                     <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                     </button>
                      {{Session::get('error_msg')}}
                  </div>
                </div>
              @endif
              @if (Session::get('succ_msg'))
                <div class="col-md-12">
                  <div class="alert alert-success">
                     <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                       <span aria-hidden="true">&times;</span>
                     </button>
                      {{Session::get('succ_msg')}}
                  </div>
                </div>
              @endif
               
            <div class="col-sm-12">
            
            <?php echo $page->page_description;?>
                <div class="col-sm-12 leagel-m">
                    @if($data->count()>0)
                    <table>
                    @foreach($data as $legal)
                    <tr><td><div class="col-sm-12 legal_title"><a href="{{url('legal/'.$legal->id)}}">{{ $legal->title}}</a>&nbsp;-</div></td><td><div class="col-sm-12">{{$legal->subject}}</div></td></tr>
                    @endforeach
                    </table>
                    @endif
                </div>    
            </div>
          </div>
        </div></div></div>
      </div>
    </div>
  </section>
@endsection
@section('js')
<script src="{{ asset('js/bootstrapValidator.min.js')}}"></script>
<script src="{{ asset('js/maskedinput/jquery.maskedinput.min.js')}}"></script>
<script src="{{ asset('js/validation.js')}}"></script>
@endsection
