@if(count($media)>1)
@foreach($media as $item)
@if($item['type'] == "mp4")
@else
@endif
@endforeach
@else
@if(media[0] != '')
@if(media[0]['type'] == "mp4")
@else
@endif
@endif
@endif
@if(count($files) > 1)
@foreach($files as $item)
@php
$fileName = explode("/", $item['file']);
@endphp
@if($item['type'] == "mp3")
@else
@endif
@endforeach
@else
@if($files[0] != '')
@php
$fileName = explode("/", $item['file']);
@endphp
@if($files[0]['type'] == "mp3")
@else
@endif
@else
@endif
@endif
@endif