@extends('admin.layouts.app')

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


@section('content')
<!-- Page-Title -->
<div class="col-md-12">
    <div class="col-md-12 pd-0">
        <div class="u-shadow-v21 nbr g-bg-white rounded notice-board  mg-0 wow slideInUp" data-wow-duration="3s">
            <div class="media g-mb-15">
                <div>

                    <div class="bar-title" style="text-align:center">
                        <h1><a href=""><span> বিশেষ অতিথিদের নামের তালিকা
                                </span></a></h1>
                    </div>

                    <table class="table table-dark">
                        <thead>
                            <tr>
                                <th scope="col">ক্রমিক</th>
                                <th scope="col"> পর্ব</th>
                                <th scope="col"> নাম</th>
                                <th scope="col">পদবী</th>
                                <th scope="col">ঠিকানা</th>
                                <th scope="col">ছবি</th>
                                <th scope="col"> Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 0; ?>
                            @if(count($specialguests) > 0)

                            @foreach($specialguests as $specialguest)
                            <tr>
                                <?php $i+=1; ?>
                                <th scope="row">{{$i}}</th>
                                <td>{{$specialguest->round_id}}</td>
                                <td>{{$specialguest->specialguest_name}}</td>
                                <td>{{$specialguest->specialguest_designation}}</td>
                                <td>{{$specialguest->specialguest_address}}</td>
                                <td>
                                    <div>
                                        <img src="{{ URL::to('public/images/' . $specialguest->specialguest_image)}}"
                                            height="80" width="60" />
                                        </a>

                                    </div>
                                </td>
                                <td>
                                    <a style="width: 49%;"
                                        href="{{url('admin/specialguest')}}/{{$specialguest->id}}/edit"
                                        class="btn btn-danger btn-sm">
                                        <span class="glyphicon glyphicon-edit"> </span> Edit
                                    </a>

                                </td>
                                <td>
                                    <form class="form-horizontal" enctype="multipart/form-data" method="POST"
                                        action="{{action('AdminController@specialguestdelete', $specialguest->id)}}">
                                        {{ csrf_field() }}
                                        <a style="width: 49%;"
                                            href="{{url('admin/specialguest')}}/{{$specialguest->id}}/delete"
                                            class="btn btn-danger btn-sm">
                                            <span class="glyphicon glyphicon-trash"> </span>
                                        </a>
                                    </form>
                                </td>

                            </tr>
                            @endforeach
                            @else
                            <tr>
                                <td> No Data Found</td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </div>
</div>
</div>


<!-- end row -->
@endsection

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