@extends('layout.user') @section('content')

Photos

{{-- --}} @if( \App\Helpers\HelperMethods::checkIfSubscriptionExists() ) @if(count($photos)>0) @endif @else @endif
@if( \App\Helpers\HelperMethods::checkIfSubscriptionExists() ) @else @endif @if(count($photos)>0) @if( \App\Helpers\HelperMethods::checkIfSubscriptionExists() ) Download Zip File @else @endif @endif
@if(count($photos)>0)
@foreach($photos as $key=>$photo)
@if (file_exists(public_path($photo->image_path))) @else @endif
{{--

{{substr($photo->name,0, 16)}}{{(count_chars($photo->name)>17)? '. . . .':''}}

--}}

{{strlen($photo->name) > \App\AppConstants::DAMAGED_PHOTO_NAME_LENGTH ? substr($photo->name,0,\App\AppConstants::DAMAGED_PHOTO_NAME_LENGTH )."..." : $photo->name}}

{{round($photo->size, 2)}} KB

@endforeach
@else
@if(\App\Helpers\HelperMethods::checkIfSubscriptionExists()) @include('snippets.no_records', ['title' => "No Photos Found", 'message' => 'There is no damage photo.', 'target'=>'#upload_document','button'=> '+ Upload Photo' , 'image'=> asset('images/menu_icon3.png')]) @else @include('snippets.no_records', ['title' => "No Photos Found", 'message' => 'There is no damage photo.', 'target'=>'#membership_expired_modal','button'=> '+ Upload Photo' , 'image'=> asset('images/menu_icon3.png')]) @endif
@endif @include('modal.upload_document') @if(count($photos)==0) @endif @endsection @section('js_file') @endsection