@extends('layouts.admin') @section('title', 'Audio File Statistics | Admin Dashboard') @section('page-title', 'Audio File Statistics: ' . $audio->title) @section('content')
File Information
  • Title: {{ $audio->title }}
  • Duration: {{ gmdate("i:s", $audio->duration) }}
  • File Size: {{ round($audio->file_size / (1024 * 1024), 2) }} MB
  • Total Accesses: {{ $logs }}
  • Completed Listens: {{ $completions }}
  • Average Listen Time: {{ gmdate("i:s", $averagePlayTime) }}
Listening Pattern
Playback Events
Back to Stats
@if(count($playbackEvents) > 0)
@foreach($playbackEvents as $event) @endforeach
Time Event Type Position Session User IP
{{ $event->timestamp->format('Y-m-d H:i:s') }} @if($event->event_type == 'play') Play @elseif($event->event_type == 'pause') Pause @elseif($event->event_type == 'seek') Seek @elseif($event->event_type == 'end') End @endif {{ gmdate("i:s", $event->position_seconds) }} {{ substr($event->session->session_token, 0, 10) }}... {{ $event->session->user_ip }}
@else

No playback events recorded for this file.

@endif
@section('scripts') @endsection @endsection