{{ __('sidebar.room_photo_title_name') }}

{{--
--}}
@if(count($images)>0) {{-- --}} {{-- --}} @foreach($images as $image) @php $room=DB::table('rooms')->select('title')->where('id',$image->room_id)->get(); @endphp {{-- --}} {{-- --}} @endforeach
S.N. {{ __('sidebar.photo_name') }}{{ __('sidebar.photo_size') }}{{ __('sidebar.photo_path') }}{{ __('sidebar.photo_room') }} {{ __('sidebar.photo_caption') }} {{ __('sidebar.photo_status') }} {{ __('sidebar.photo_action') }}
{{$image->id}} {{ $image->name }} @if($image->size < 1000) {{ number_format($document->size,2) }} bytes @elseif($image->size >= 1000000) {{ number_format($image->size/1000000,2) }} mb @else {{ number_format($image->size/1000,2) }} kb @endif {{ $image->path }} @foreach($room as $data) {{$image->room->title}} @endforeach {{$image->caption}} @if($image->status=='active') {{$image->status}} @else {{$image->status}} @endif
@csrf @method('delete')
{{$images->links()}} @else
No Image found!!! Please create image
@endif
@endsection