@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('patient_documents.patient_documents_for') }} {{ $patient->first_name }} {{ $patient->last_name }}

@include('patients::allergies.header')

@include('flash::message')
@foreach($documents as $document) @php $uploaded_by = \Streamline\Models\User::find($document->created_by); @endphp @endforeach
{{ __('patient_documents.date') }} {{ __('patient_documents.patient_number') }} {{ __('patient_documents.patient') }} {{ __('patient_documents.title') }} {{ __('patient_documents.description') }} {{ __('patient_documents.uploaded_by') }}    
{{ Carbon\Carbon::parse($document->created_at)->format('d, M Y') }} {{ $patient->number }} {{ $patient->first_name }} {{ $patient->last_name}} {{ $document->title }} {{ $document->description }}{{ $uploaded_by->first_name }} {{ $uploaded_by->last_name }} {{ __('patient_documents.preview') }} {{ Form::model($document->id ,['method' => 'DELETE', 'route' => ['patient_documents.destroy', $document->id]]) }} {{ Form::close() }}
@endsection @push('scripts') @endpush