@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) @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 }} {{ get_full_name($document->created_by, 'id', 'first_name', 'last_name', 'users') }} {{ __('patient_documents.preview') }} {{ Form::model($document->id ,['method' => 'DELETE', 'route' => ['patient_documents.destroy', $document->id]]) }} {{ Form::close() }}
@endsection @push('scripts') @endpush