@extends('layouts.admin-layout') @section('content') @foreach($onlineDocuments as $onlineDocument)
{{ $onlineDocument->name }} {{ $onlineDocument->id }} {{ $onlineDocument->position }} @foreach($onlineDocument->files as $file)
{{ $file->name }} {{ $file->url }}
@endforeach
@endforeach @php $files = \App\Models\File::all(); foreach ($files as $file) { echo ($file); } @endphp @endsection