@extends('user/layouts/main')
@section('title')
    ข่าวสาร |
@endsection
@section('container')
    <div id="contact" class="cards" style="padding-top: 10rem !important;padding-bottom: 9.5rem !important;">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="text-container">
                        <strong class="text-center">
                            <h2><u>บริษัท ยูพีพี อัลทิเมท แพคกิ้ง จำกัด</u></h2>
                        </strong>
                        <br />
                        <strong class="text-center">
                            <h2><u>ข่าวสาร</u></h2>
                        </strong>
                        <br />
                        @foreach ($new as $key => $news)
                            <!-- Card -->
                            <div class="card">
                                <div class="card-body text-dark">
                                    <div class="testimonial-author">{{ $news['news_toppics'] }}</div>
                                    <a class="read-more no-line text-info"
                                        href="{{ asset('/news_detail/' . $news['id'] . '') }}">อ่านเพิ่มเติม <span
                                            class="fas fa-long-arrow-alt-right"></span></a>
                                </div>
                                <div class="gradient-floor red-to-blue"></div>
                            </div>
                            @if (++$key < count($new))
                                <br />
                                <hr class="section-divider">
                                <br />
                            @endif
                            <!-- end of card -->
                        @endforeach
                    </div>
                    <!-- end of text-container -->
                </div>
            </div>
            <!-- end of row -->
        </div>
        <!-- end of form-1 -->
    </div>
@endsection
