@extends('layouts.app')
@section('content')


    <div class="container-fluid mt-5">
        <div class="card">
            <div class="card-header">{{ __('Guest Attendance list') }}</div>
            <div class="card-body">

            <div class="row">
                <div class="col-md-12">
                    <table class="table table-striped mb-0 ">
                    <thead class="thead-light">
                        <tr>
                            <th>{{ __("No") }}</th>
                            <th>{{ __("Participant Name") }}</th>
                            <th>{{ __("Email") }}</th>
                            <th>{{ __("Date and time") }}</th>
                            <th>{{ __("Goodies") }}</th>
                            <th>{{ __("Scan By") }}</th>
                            <th>{{ __("Registration") }}</th>
                            <th>{{ __("Attendance Event") }}</th>
                            <th>{{ __("Lunch Event") }}</th>
                           
                           
                        </tr>
                    </thead>
                    <tbody>
                        @if($list)
                        @foreach($list as $list)
                        <tr>
                            <td>{{ $loop->iteration }}</td>
                            <td>{{ $list->fullname }}</td>
                            <td>{{ $list->email }}</td>
                            <td>{{ $list->time }}</td>
                            <td>@if($list->goodies_status == 1) Yes @else Not Yet @endif</td>
                            <td>{{ $list->by }}</td>
                            <td>@if($list->registration_status == 1) Yes @else Not Yet @endif</td>
                            <td>@if($list->attendance_status == 1) Yes @else Not Yet @endif</td>
                            <td>@if($list->lunch_status == 1) Yes @else Not Yet @endif</td>

                            
                        </tr>
                        @endforeach
                        @else
                        <tr>
                            <td colspan="6">No data</td>
                        </tr>
                        @endif
                    </tbody>
                </table>
                    
                </div>
            </div>

              
                
            </div>
            <div class="card-footer">
                <a href="{{ route('home') }}" class="btn btn-primary">{{ __('Kembali') }}</a>
            </div>
        </div>
    </div>

    
@endsection
