@extends('backend.home.index')
@push('title', $halaman->nama)
@push('header', $halaman->nama)
@push('tombol')
<a href="#tambah" class="btn btn-sm btn-primary tambah">
	Tambah  <i class="fa fa-plus-circle"></i>
</a>
@endpush
@section('content')
<div class="panel-container show container-fluid col">
	
	<div class="panel-content">
	<section class="news pt-0">
  <div class="container mt-md-5">
    <h2 class="mx-4 my-0 text-center font-monospace">Artikel Gaiss</h2>
    <ul class="row d-lg-flex list-unstyled image-block justify-content-center px-lg-0 mx-lg-0">
	 
</section>

</div>
</div>

  <!-- Format Baru -->

  <style>
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif
}

.container {
    padding: 20px
}

img {
    height: 170px;
    width: 100%;
    object-fit: cover
}

.bg-org {
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    background-color: #eca726;
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 20px
}

.bg-org:hover {
    background-color: #eec67c
}

.bg-blue {
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    background-color: #414df0;
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 20px
}

.bg-blue:hover {
    background-color: #abb0f5
}

.bg-vio {
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    background-color: #b005ff;
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 20px
}

.bg-vio:hover {
    background-color: #ce89ee
}

.bg-green {
    background-color: #27e727;
    border-radius: 10%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px
}

.bg-orgn {
    background-color: #eca726;
    border-radius: 10%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px
}

.bg-blu {
    background-color: #414df0;
    border-radius: 10%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px
}

.bg-violet {
    background-color: #b005ff;
    border-radius: 10%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px
}

.text-muted {
    font-size: 14px
}

.fs5 {
    line-height: 20px;
    font-size: 16px
}

.items {
    font-size: 15px;
    background-color: black;
    color: white;
    margin: 3px 3px;
    padding: 4px 10px;
    text-decoration: none;
    border: 1px solid #ddd
}

.items:hover {
    background-color: #fcf7f7;
    color: black;
    transition: background-color .8s
}
    </style>


  <div class="container">
    <div class="row">
     @php 
     $eoffice = DB::table('eoffices')->latest('created_at')->first()
     @endphp
 <div class="col-lg-8 order-lg-0 order-2">
            <div class="row">
                <div class="col-md-4 mb-4"> <img class="" src="https://images.pexels.com/photos/3184611/pexels-photo-3184611.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt=""> </div>
                <div class="col-md-8 mb-4">
                    <div class="d-flex align-items-center"> <a href="{{ URL::asset('../artikeleoffice/index')}}" class="bg-org">E-Office</a> <span class="text-muted ps-4"> {!! $eoffice->created_at !!}</span> </div>
                    <div>
                        <p class="text-capitalize fs5 my-3 fw-bolder">{!! $eoffice->judul !!}</a>
                            <p class="text-muted">{!! Str::limit($eoffice->konten) !!}</a>
                            <small><span><a href="{{ URL::asset( $halaman->kode .'/vieweoffice')}}"><u>Read More</u></a></span></small>
                    </div>
                </div>
            
</div>
</div>

<div class="row">
      @php 
      $laravel = DB::table('laravels')->latest('created_at')->first()
      @endphp
 <div class="col-lg-8 order-lg-0 order-2">
            <div class="row">
                <div class="col-md-4 mb-4"> <img class="" src="https://images.pexels.com/photos/3184611/pexels-photo-3184611.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt=""> </div>
                <div class="col-md-8 mb-4">
                    <div class="d-flex align-items-center"> <a href="{{ URL::asset( $halaman->kode .'/getlaravel')}}" class="bg-org">Laravel</a> <span class="text-muted ps-4"> {!! $laravel->created_at !!}</span> </div>
                    <div>
                        <p class="text-capitalize fs5 my-3 fw-bolder">{!! $laravel->judul !!}</a>
                            <p class="text-muted">{!! Str::limit($laravel->konten, 100) !!}</a>
                            <small><span><a href="{{ URL::asset( $halaman->kode .'/viewlaravel')}}"><u>Read More</u></a></span></small>
                    </div>
                </div>
</div>
</div>

<div class="row">
      @php 
      $frontend = DB::table('frontendps')->latest('created_at')->first()
      @endphp
 <div class="col-lg-8 order-lg-0 order-2">
            <div class="row">
                <div class="col-md-4 mb-4"> <img class="" src="https://images.pexels.com/photos/3184611/pexels-photo-3184611.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt=""> </div>
                <div class="col-md-8 mb-4">
                    <div class="d-flex align-items-center"> <span class="bg-org">Frontend</span> <span class="text-muted ps-4">  {!! $frontendp->created_at ?? Null !!}</span> </div>
                    <div>
                        <p class="text-capitalize fs5 my-3 fw-bolder">{!! $frontend->judul ?? Null !!}</a>
                            <p class="text-muted">{!! Str::limit($frontend->konten) !!}</a>
                            <small><span><a href="{{ URL::asset( $halaman->kode .'/viewfrontend')}}"><u>Read More</u></a></span></small>
                    </div>
                </div>
</div>
</div>

<div class="row">
      @php 
      $backend = DB::table('backendps')->latest('created_at')->first()
      @endphp
 <div class="col-lg-8 order-lg-0 order-2">
            <div class="row">
                <div class="col-md-4 mb-4"> <img class="" src="https://images.pexels.com/photos/3184611/pexels-photo-3184611.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt=""> </div>
                <div class="col-md-8 mb-4">
                    <div class="d-flex align-items-center"> <span class="bg-org">Backend</span> <span class="text-muted ps-4"> {!! $backend->created_at ?? Null !!}</span> </div>
                    <div>
                        <p class="text-capitalize fs5 my-3 fw-bolder">{!! $backend->judul ?? Null !!}</a>
                            <p class="text-muted">{!! Str::limit($backend->konten, 100) !!}</a>
                            <small><span><a href="{{ URL::asset( $halaman->kode .'/viewbackend')}}"><u>Read More</u></a></span></small>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-4 order-lg-1 mb-3"> <span class="fs-4 mb-2 fw-bold text-capitalize">catagories</span>
            <div class="d-flex flex-column">
                <div class="d-flex align-items-center justify-content-between border-bottom py-2"> <span>Web Design</span> <span class="bg-green">340</span> </div>
                <div class="d-flex align-items-center justify-content-between border-bottom py-2"> <span>javascript</span> <span class="bg-orgn">74</span> </div>
                <div class="d-flex align-items-center justify-content-between border-bottom py-2"> <span>JQuery</span> <span class="bg-blu">41</span> </div>
                <div class="d-flex align-items-center justify-content-between border-bottom py-2"> <span>CSS</span> <span class="bg-violet">35</span> </div>
            </div>
            <div class="d-flex flex-wrap my-5"> <a class="items" data-bs-toggle="tooltip" data-bs-placement="top" title="Chorme" href="#">Chorme</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="top" title="CSS" href="#">CSS</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="top" title="Tutorial" href="#">Tutorial</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="top" title="Backend" href="#">Backend</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="left" title="JQuery" href="#">JQuery</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="top" title="Design" href="#">Design</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="right" title="Development" href="#">Development</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="bottom" title="javascript" href="#">Javascript</a> <a class="items" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Website" href="#">Website</a> </div>
        </div>

</div>
</div>



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

@endsection
<script>
  var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip]'))
  var tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl){

  })
  </script>
@push('js')
@include('backend.home.datatable-js')
<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/jquery.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('ojisatriani/'. $halaman->kode .'/datatables.js') }}"></script>


@endpush
@push('css')
@include('backend.home.datatable-css')

@endpush



