@extends('layouts.master') @section('title') {{$title}} @lang('translation.starter') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Pages @endslot @slot('title') {{$title}} @endslot @endcomponent

List {{ $title }}

@can('info_rekrutmen_create') Create @endcan
@php $publish=0; @endphp @foreach ($prods as $item) @php $publish= App\Models\RecordPublish::where('id_table',$item->id)->where('nama_modul','info_rekrutmen')->where('status','published')->count(); @endphp @endforeach
Judul Isi Status Action
{{ $item->judul }}
@if ($item->status==1) Published @if($publish>0) ({{ $publish }}x) @else {{ '(1x)' }} @endif @else Draft @endif
@can('info_rekrutmen_update') @endcan @can('info_rekrutmen_publish') @if ($item->status==1)
@csrf
@else
@csrf
@endif @endcan @can('info_rekrutmen_delete')
@csrf @method('DELETE')
@endcan
@endsection @section('script') @include('datatable') @endsection