@if (Session::has('staff')) @php $staff = Session::get('staff') @endphp @if($staff->staffdocument->count()>0)
@foreach ($staff->staffdocument as $index=>$sd) @endforeach
STAFF DOCUMENT
# DOC-TYPE VIEW CREATED AT
{{ ++$index }} {{ $sd->staffdoctype->name }} View {{ $sd->created_at }}
@endif @endif