@extends('backend.home.index')
@push('title', 'Detail '. $halaman->nama . ' '. $aksesgrup->nama)
@push('header', 'Detail '. $halaman->nama . ' '.$aksesgrup->nama)
@push('tombol')
<div class="btn-group pull-right">
    <a href="{{ url('aksesgrup') }}" class="btn btn-sm btn-danger">
        <i class="fa fa-arrow-left"></i> Kembali
    </a>
</div>
@endpush
@section('content')

@foreach($katartikel as $katartikels)
<div class="panel-container show">
    <div class="panel-content">
       {{ $katartikels->nama }}

       @push('tombol')
            <a href="#view" class="btn btn-sm btn-primary tambah float-right">
            	Lihat Detail  <i class="fa fa-plus-circle"></i>
            </a>
        @endpush
    </div>
</div>
@endforeach
<div class="container-fluid mt-100">
    <div class="row">
      @foreach($laravel as $lavitem)  
        <div class="col-md-12">
            <div class="card mb-4">
                <div class="card-header">
                    <div class="media flex-wrap w-100 align-items-center"> <img src="https://i.imgur.com/iNmBizf.jpg" class="d-block ui-w-40 rounded-circle" alt="">
                        <div class="media-body ml-3"> <a href="javascript:void(0)" data-abc="true">{{ $lavitem->user_id }}</a>
                            <div class="text-muted small">Created at {{ $lavitem->created_at }}</div>
                        </div>
                        <div class="text-muted small ml-3">
                            <div>Updated at <strong>{{ $lavitem->updated_at }}</strong></div>
                            <div><strong>134</strong> posts</div>
                        </div>
                    </div>
                </div>
                <div class="card-body">
                    <h3> {{ $lavitem->judul }} </h3>
                    <p> {{ $lavitem->konten }} </p>
                    <p> For me, getting my business website made was a lot of tech wizardry things. Thankfully i get an ad on Facebook ragarding commence website. I get connected with BBB team. They made my stunning website live in just 3 days. With the increase demand of online customers. I had to take my business online. BBB Team guided me at each step and enabled me to centralise my work and have control on all aspect of my online business. </p>
                </div>
                <div class="card-footer d-flex flex-wrap justify-content-between align-items-center px-0 pt-0 pb-3">
                    <div class="px-4 pt-3"> <a href="javascript:void(0)" class="text-muted d-inline-flex align-items-center align-middle" data-abc="true"> <i class="fa fa-heart text-danger"></i>&nbsp; <span class="align-middle">445</span> </a> <span class="text-muted d-inline-flex align-items-center align-middle ml-4"> <i class="fa fa-eye text-muted fsize-3"></i>&nbsp; <span class="align-middle">14532</span> </span> </div>
                    <div class="px-4 pt-3"> <button href="#" type="button" class="btn btn-primary" id="komentar-utama" name="komentar-utama"><i class="ion ion-md-create"></i>&nbsp; Komentar</button> </div>
                    <!-- <form action="" style="display: none !important;" class="form-control" method="POST" id="form-komentar" name="form-komentar"> -->
                     <textarea style="display: none !important;"  class="form-control w-100 mt-2 ml-5" name="txt-komentar-utama" id="txt-komentar-utama"></textarea>
                    
                    <div class=" w-100 ml-2 mt-2 comment-area "> 
                         <button style="display: none !important;" class="btn btn-secondary btn-block mt-2 post-btn" id="post-komentar" name="post-komentar" href="#">Post</button> </div>
<!-- </form> -->
                </div>
                @endsection

                

@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> -->
<script type="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"></script>


<script>
        $(document).ready(function(){
            $('#komentar-utama').click(function(){
                 $('#txt-komentar-utama').toggle('slide');
                
            })
        });

        $(document).ready(function(){
            $('#komentar-utama').click(function(){
                 $('#post-komentar').toggle('slide');
                
            })
        });
        </script>

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