@extends('layouts.dashboard.app')

@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header"> {{ __('Video Enregistrer') }} </div>
                    <div class="card-body">
                        @foreach ($documents as $document)
                        <div class="ratio ratio-1x1">
                            <video type="video/x-matroska" controls src="{{ Storage::disk('s3')->temporaryUrl($document->path, now()->addMinutes(30)) }}" ></video>
                            {{-- <iframe src=""></iframe> --}}
                        </div>
                        <span class=" badge bg-success">{{ $document->created_at }}</span>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection
