<!DOCTYPE html>
<html lang="zxx">


<head>
    <meta charset="utf-8">
    <title>Redline Associates - Career</title>

    @include("header")

</head>

<body>


<!-- preloader start -->
<div class="preloader">
    <img src="{{asset('assets/images/preloader.gif')}}" alt="preloader">
</div>
<!-- preloader end -->

<!-- navigation -->
<header>

    @include("navigation")
</header>


<section class="page-title overlay career_bg" >
    <div class="container">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="text-white font-weight-bold">Career</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{{url('')}}">Home</a>
                    </li>
                    <li>Career</li>
                </ol>
            </div>
        </div>
    </div>
</section>

<!-- contact -->
<section class="section">
    <div class="container">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="section-title section-title-border">Open Job</h2>
            </div>

            @if(isset($careers) && sizeof($careers) == 0)
                <div class="col-sm-12">
                    <div class="mb-4 card px-2 py-5 text-center">
                        <h4>No open job found</h4>
                        <p>We are sorry, we don't have any job open yet.</p>
                    </div>
                </div>
            @endif

            @if(isset($careers) && sizeof($careers) > 0)
                @foreach($careers as $career)
                    <div class="col-sm-6">
                        <div class="mb-4  job-card px-2 py-5 text-center" style="    border: 1px solid #f1f0f0;">
                            <h4>{{$career['title']}}</h4>
                            {{--<p>--}}
                                {{--@if(strlen($career['description']) > 70)--}}
                                    {{--{{substr($career['description'],0,70) . '...'}}--}}
                                {{--@else--}}
                                    {{--{{$career['description']}}--}}
                                {{--@endif--}}
                            {{--</p>--}}
                            <a href="{{url('career/details/'.$career['id'])}}" style="padding: 10px 20px;"
                               class="btn btn-primary mt-3">More Details</a>
                        </div>
                    </div>
                @endforeach
            @endif
        </div>

    </div>
</section>

<section class="map">
    <!-- Google Map -->
    {{--    <div id="map_canvas"></div>--}}
</section>

@include("footer")

</body>

</html>
