@extends('layouts.sidebar') @section('title', 'Nomadic-CMS') @section('content')

{{$page}} Page

@if(session('success'))
{{session('success')}}
@endif
Add New Privacy Policy
@csrf
Privacy Policies
@php $latestId = $files->first() ? $files->first()->id : null; @endphp @foreach($files as $policy) @endforeach
ID Version Content Created Date Action
{{ $policy->id }} {{ $policy->version ?? '-' }} {{ \Illuminate\Support\Str::limit(strip_tags($policy->content), 80) }} {{ $policy->created_at ? date('Y-m-d H:i', strtotime($policy->created_at)) : '-' }} @if($policy->id === $latestId) @else Locked @endif
@endsection @section('footer_scripts') @endsection