@if ($openai->type == 'audio')
@forelse ($userOpenai as $entry)
0:00

{!! $entry->output !!}

@lang('Open in AI Editor')
@empty

{{ __('No entries created yet.') }}

@endforelse
@elseif ($openai->type == 'voiceover') {{ __('File') }} {{ __('Language') }} {{ __('Voice') }} {{ __('Date') }} {{ __('Play') }} {{ __('Action') }} @forelse ($userOpenai as $entry) @if (empty(json_decode($entry->response))) @continue @endif {{ $entry->title }} @foreach (array_unique(json_decode($entry->response)->language) as $lang) {{ country2flag(explode('-', $lang)[1]) }} @endforeach {{ $lang }} @foreach (array_unique(json_decode($entry->response)->voices) as $voice) {{ getVoiceNames($voice) }} @endforeach {{ $entry->created_at->format('M d, Y') }}, {{ $entry->created_at->format('H:m') }}
0:00 @empty {{ __('No entries created yet.') }} @endforelse
{{ $userOpenai->withPath(route('dashboard.user.openai.generator', 'ai_voiceover'))->links('pagination::bootstrap-5-alt') }}
@elseif ($openai->type == 'isolator') {{ __('File') }} {{ __('Info') }} {{ __('Play') }} {{ __('Action') }} @forelse ($userOpenai as $entry) @if (empty(json_decode($entry->response))) @continue @endif {{ $entry->title }} {{ $entry->created_at->format('M d, Y') }}, @php $size = filesize(public_path('uploads/' . $entry->output)); $size = $size / 1024; if ($size < 1024) { echo round($size, 2) . ' KB'; } else { echo round($size / 1024, 2) . ' MB'; } @endphp
0:00 @empty {{ __('No entries created yet.') }} @endforelse
{{ $userOpenai->withPath(route('dashboard.user.openai.generator', 'ai_voiceover'))->links('pagination::bootstrap-5-alt') }}
@else {{ __('Type') }} {{ __('Result') }} @forelse ($userOpenai as $entry) @if ($entry->generator->image !== 'none') {!! html_entity_decode($entry->generator->image) !!} @endif @if ($openai->type == 'text') {!! $entry->output !!} @elseif($openai->type == 'code')
{{ $entry->output }}
@else {{ $entry->output }} @endif @empty {{ __('No entries created yet.') }} @endforelse
@endif