@extends('layouts.master') @section('title',__('All Audio Languages')) @section('breadcum') @endsection @section('maincontent')
@can('audiolanguage.delete') @endcan @can('audiolanguage.create') {{ __('Create Audio Language') }} @endcan {{-- Bulk Delete Model Start --}} {{-- Bulk Delete Model End --}}
@if($audio_languages != NULL && count($audio_languages) > 0) @foreach($audio_languages as $item) @php if($item->image != NULL){ $content = @file_get_contents(public_path() .'/images/audiolanguage/' . $item->image); if($content){ $image = public_path() .'/images/audiolanguage/' . $item->image; }else{ $image = Avatar::create($item->name)->toBase64(); } }else{ $image = Avatar::create($item->name)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $src = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp
@if($src != NULL) {{$item->language}} @endif
{{$item->language}}
@can('genre.edit') @endcan @can('genre.delete')
@endcan
@endforeach @endif
{!! $audio_languages->appends(request()->query())->links() !!}
@endsection @section('script') @endsection