@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('jobdesk_create') Create @endcan
@foreach ($prods as $item) @php $jobdesk = $item->jobdesk; $maxLength = 50; @endphp @endforeach
Posisi Jobdesk Atasan Action
{{ $item->posisi }} {!! Str::limit($jobdesk, $maxLength, '...') !!} {{$item->atasan}}
@can('jobdesk_update') @endcan @can('jobdesk_publish') @if ($item->status==1)
@csrf
@else
@csrf
@endif @endcan @can('jobdesk_delete')
@csrf @method('DELETE')
@endcan
@endsection @section('script') @include('datatable') @endsection