@extends('adminlte::page')
@section('content_header')
    <h1> Inbox {{request()->session()->get('session_tname')}}s {{request()->session()->get('session_fname')}}s For Seats</h1>
@stop


<script src="//code.jquery.com/jquery.js"></script>

@section('content')
    
        @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

              @if (session('status'))
            <div class="alert alert-success">
                {{ session('status') }}
            </div>
            @endif
            <div class="row">
                <!--Row Starts-->
                <div class="col-md-12">
               
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                           Inbox {{request()->session()->get('session_tname')}}s-Pending Days
                        </h3>
                </div>
                <div class="panel-body">
                    <table border="2" style="width:100%; font-size: 1.4rem !important;">
                        <tr>
                            <th style="text-align:center">Slno</th>
                            <th style="text-align:center">Seat ID</th>
                            <th style="text-align:center">Seat Code</th>
                            <th style="text-align:center">Tapal No:</th>
                            <th style="text-align:center">Pending Days</th>
                            
                        </tr>

                        @php
                          $i=0;
                        @endphp
                        @foreach($data as $tapaldata)
                        
                          @php
                            $i++;
                          @endphp
                          <tr>
                              <td style="text-align:center">{{$i}}</td>
                              <td style="text-align:center">{{$tapaldata['seatid']}}</td>
                              <td style="text-align:center">{{$tapaldata['seatcode']}}</td>
                              <td style="text-align:center">{{$tapaldata['tapalno']}}</td>
                              <td style="text-align:center">{{$tapaldata['pendingdays']}}</td>
                              
                          </tr>
                        @endforeach
                        
                    </table>
                    <br>
                    <br>
                    <h3><b>Inbox {{request()->session()->get('session_fname')}}-Pending Days</b></h3>
                      <table border="2" style="width:100%; font-size: 1.4rem !important;">
                        <tr>
                            <th style="text-align:center">Slno</th>
                            <th style="text-align:center">Seat ID</th>
                            <th style="text-align:center">Seat Code</th>
                            <th style="text-align:center">File No:</th>
                            <th style="text-align:center">Pending Days</th>
                            
                        </tr>

                        @php
                          $j=0;
                        @endphp
                        @foreach($data1 as $filedata)
                          @php
                            $j++;
                          @endphp
                          <tr>
                              <td style="text-align:center">{{$j}}</td>
                              <td style="text-align:center">{{$filedata['seatid']}}</td>
                              <td style="text-align:center">{{$filedata['seatcode']}}</td>
                              <td style="text-align:center">{{$filedata['fileno']}}</td>
                              <td style="text-align:center">{{$filedata['pendingdays']}}</td>
                              
                          </tr>
                        
                        @endforeach
                    </table>



                    </div>
                </div>
               
            </div>
            <!--md-12 ends-->
        </div>
@stop