@extends('layouts.master')
@section('content')
    <section class="our-winners">
        <div class="container">
            <div class="row">
                @foreach($winners as $sessionId => $sessionWinners)
                    <div class="col-lg-12 col-sm-12">
                        <div class="title">
                            <h4>WINNER'S: {{ $sessionWinners->first()->session->title }}</h4>
                            <div class="share">
                                <i class="fa fa-share-alt" aria-hidden="true"></i>
                            </div>
                        </div>
                    </div>
            
                    <div class="col-lg-12 col-sm-12" style="margin-bottom: 25px">
                        <div class="teams">
                            @foreach($sessionWinners as $winner)
                                <div class="team-member" style="background-image: url({{ asset('public/best2.jpg') }})">
                                    <div class="image">
                                        <img src="{{ asset('public/images/' . $winner->image) }}" alt="{{ $winner->title }}" />
                                    </div>
                                    <div class="informations">
                                        <span>{{ $winner->categories }}</span>
                                        <h4>{{ $winner->winnername }}</h4>
                                        <p>{{ $winner->institutename }}</p>
                                        <p>{{ $winner->address }}</p>
                                    </div>
                                </div>
                            @endforeach
                        </div>
                    </div>
                @endforeach
            </div>

        </div>
    </section>

@endsection

@section('footer')
    @include('layouts.footer')
@endsection