@extends('panel.layout.app')
@section('title', __($openai->title))
@section('content')
@if ($openai->type == 'image')
@if (view()->exists('panel.admin.custom.user.openai.generator_components.generator_image'))
@include('panel.admin.custom.user.openai.generator_components.generator_image')
@else
@include('panel.user.openai.generator_components.generator_image')
@endif
@elseif ($openai->type == 'video')
@if (view()->exists('panel.admin.custom.user.openai.generator_components.generator_video'))
@include('panel.admin.custom.user.openai.generator_components.generator_video')
@else
@include('panel.user.openai.generator_components.generator_video')
@endif
@elseif($openai->type == 'voiceover')
@if (view()->exists('panel.admin.custom.user.openai.generator_components.generator_voiceover'))
@include('panel.admin.custom.user.openai.generator_components.generator_voiceover')
@else
@include('panel.user.openai.generator_components.generator_voiceover')
@endif
@else
@if (view()->exists('panel.admin.custom.user.openai.generator_components.generator_others'))
@include('panel.admin.custom.user.openai.generator_components.generator_others')
@else
@include('panel.user.openai.generator_components.generator_others')
@endif
@endif
@endsection
@section('script')
@if ($openai->type == 'voiceover')
@endif
@if ($openai->type == 'code')