@extends('admin.layouts.app')

@section('header-script')
@include('admin.layouts.dashboard-header-script')
@endsection


@section('content')


<!-- Page-Title -->
<div class="row">
    <div class="col-sm-12">
        <!--
						<ul class="nav nav-pills nav-pills-custom display-xs-none pull-right m-t-25">
                            <li role="presentation"><a href="#">Today</a></li>
                            <li role="presentation" class="active"><a href="#">Yesterday</a></li>
                            <li role="presentation"><a href="#">Last Week</a></li>
                        </ul>
                          -->
        <h4 class="page-title"><span>Welcome</span> <span
                style="color: #fe6271;text-transform: uppercase;">{{ Auth::user()->name }}</span> To <span
                style="color: red;">Rajtextile</span> <span>School</span></h4>
    </div>
</div>

<div class=" row">
    <div class="col-sm-12">
        <div class="card-box">
            <div class="row">
                <table id="datatable" class="table table-striped dt-responsive nowrap">
                    <tr>
                        <td>
                            @if(Auth::user()->role == 1)
                            <div style="width: 200px;">
                                @if(Auth::user()->picture > 0)
                                <img src="{{'public/images'}}/{{Auth::user()->picture}}" width="200" />
                                @else
                                <img src="{{'public/images/photo.jpg'}}" width="200px" />
                                @endif


                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>Name</th>
                        <td> {{Auth::user()->name}} </td>
                    </tr>
                    <tr>
                        <th>Email</th>
                        <td> {{Auth::user()->email}}</td>
                    </tr>
                    <tr>
                        <th>Class</th>
                        <td> {{Auth::user()->class}}</td>
                    </tr>
                    <tr>
                        <th>Roll</th>
                        <td> {{Auth::user()->roll}}</td>
                    </tr>
                    <tr>
                        <th> Student Hobby </th>
                        <td> {{Auth::user()->hobby }}</td>
                    </tr>
                    <tr>
                        <th>Father Name</th>
                        <td> {{Auth::user()->fathername  }}</td>
                    </tr>
                    <tr>
                        <th>Mother Name</th>
                        <td> {{Auth::user()->mothername }}</td>
                    </tr>
                    <tr>
                        <th>Address </th>
                        <td> {{Auth::user()->present_address }}</td>
                    </tr>

                    <tr>
                        <th> Age </th>
                        <td> {{Auth::user()->age }}</td>
                    </tr>
                    <tr>
                        <th> Religion </th>
                        <td> {{Auth::user()->religion  }}</td>
                    </tr>

                    <tr>
                        <th> Year </th>
                        <td> {{Auth::user()->year  }}</td>
                    </tr>
                    <tr>
                        <th> Mobile </th>
                        <td> {{Auth::user()->mobile  }}</td>
                    </tr>



                </table>
            </div>
        </div>
    </div><!-- end col -->
</div>

@endif
<!-- end row -->
</div>



</div>
</div>
</div><!-- end col -->

</div>
<!-- end row -->


<!-- Footer -->
@section('footer')
@include('admin.layouts.footer')
@endsection
<!-- End Footer -->

@endsection

@section('footer-script')
@include('admin.layouts.dashboard-footer-script')
@endsection