@extends('layouts.horizontal', ['title' => 'Consent Forms', 'topbarTitle' => 'Consent Forms']) @section('css') @vite(['node_modules/select2/dist/css/select2.min.css']) @endsection @section('content')

{{ $visit_id ? 'Consent Forms for Visit ID: ' . $visit_id : 'Consent Forms' }}

@foreach($data as $category)

{{ $category['category']->concent_category }}

@foreach($category['forms'] as $form)

{{ $form->concent_form }} ({{ $category['category']->concent_category }})

Last Edited: {{ date('d M Y', strtotime($form->updated_at ?? $form->created_on)) }}
@endforeach
@endforeach
@endsection @section('scripts') @endsection