@extends('layouts.app') @section('title', 'Glossary') @section('content')

Glossary

@if(auth()->user()->can('manage glossary')) @endif
@foreach( $glossaries as $glossary)

{{ $glossary->term }}

{!! $glossary->department->icon !!}

@if( strpos($glossary->definition, ".") !== false) {{ $glossary->definition }} @else {{ $glossary->definition }}. @endif @if( $glossary->references == '' ) @else More details @endif

Keywords: {{ implode('; ', $glossary->keywords ) }}

@if(auth()->user()->can('manage glossary')) @endif

Last updated: {{ date("d/m/Y", strtotime($glossary->updated_at )) }}

Updated by: {{ $glossary->user->getName() }}

@endforeach
@endsection @push('js') @endpush