@extends('layouts.master') @section('title',__('All Actors')) @section('breadcum') @endsection @section('maincontent')
{{ __('All Actors') }}
@can('actor.delete') @endcan @can('actor.create') {{ __('Add Actor') }} @endcan {{-- Bulk Delete Model Start --}} {{-- Bulk Delete Model End --}} {{-- Impport Model Start --}} {{-- Import Model End --}}
@if(isset($actors) && $actors->count() > 0) @foreach($actors as $item) @php if($item->image != NULL){ $content = @file_get_contents(public_path() .'/images/actors/' . $item->image); if($content){ $image = public_path() .'/images/actors/' . $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) ... @endif
{{$item->name}}

{{__('DOB')}}

{{isset($item->DOB) && $item->DOB != NULL ? $item->DOB : '-' }}

{{__('Place Of Birth')}}

{{isset($item->place_of_birth) && $item->place_of_birth != NULL ? str_limit($item->place_of_birth,30) : '-'}}

{{__('BioGraphy')}}

{{isset($item->biography) && $item->biography != NULL ? str_limit($item->biography,50) : '-'}}

@endforeach
{!! $actors->appends(request()->query())->links() !!}
@else
{{__("Let's start :)")}}
{{__('Get Started by creating a actor ! All of your actors will be displayed on this page.')}}
@endif
@endsection @section('script') @endsection