@extends('layouts.admin') @section('title',__('adminstaticwords.AllAudio')) @section('content')
add {{__('adminstaticwords.CreateAudio')}} delete {{__('adminstaticwords.DeleteSelected')}}
@if(isset($audio) && $audio->count() > 0) @foreach($audio as $item)
@if($item->thumbnail != NULL) ... @elseif($item->poster != NULL) ... @else ... @endif
{{$item->title}}
{{__('Genre')}}
@php $genres = collect(); if (isset($item->genre_id)){ $genre_list = explode(',', $item->genre_id); for ($i = 0; $i < count($genre_list); $i++) { try { $genre = App\Genre::find($genre_list[$i])->name; $genres->push($genre); } catch (Exception $e) { } } } @endphp

@if (count($genres) > 0) @for($i = 0; $i < count($genres); $i++) @if($i == count($genres)-1) {{$genres[$i]}} @else {{$genres[$i]}}, @endif @endfor @endif

{{__('Description')}}

{{isset($item->description) && $item->description ? str_limit($item->description,50) : '-' }}

{{__('Audio Emotions')}}
  • desktop_mac
  • @can('audio.edit')
  • mode_edit
  • @endcan @can('audio.delete')
  • delete
  • @endcan
@endforeach
{!! $audio->appends(request()->query())->links() !!}
@else
{{__("Let's start :)")}}
{{__('Get Started by creating a audio! All of your audios will be displayed on this page.')}}
@endif
@endsection