Country / State: {{ $cityWiseCounts[0]->country }}

@foreach ($cityWiseCounts as $item) @endforeach
Sr No. Form No City Centre Time Attendee Count Pledge Forms received Video Photo 1 Photo 2 Centre Head Name Mobile No Designation 1 Witness 1 Mobile No Designation 2 Organized By Mobile No Designation 3 Other Details
{{ $loop->iteration }} {{ $item->id }} {{ $item->city }} {{ $item->centre }} {{ $item->time }} {{ $item->attCount }} {{ $item->pledgeforms ? $item->pledgeforms : '---' }} @if($item->video) @php $videoUrls = explode(',', $item->video); $customUploadsBasePath = 'https://anuvratgeet-media.s3.ap-south-1.amazonaws.com/customUploads/'; $videoBasePath = 'https://anuvratgeet-media.s3.ap-south-1.amazonaws.com/video/'; @endphp @foreach($videoUrls as $videoUrl) @php if (strpos($videoUrl, $customUploadsBasePath) !== false) { $basePath = $customUploadsBasePath; } elseif (strpos($videoUrl, $videoBasePath) !== false) { $basePath = $videoBasePath; } else { $basePath = ''; } $filename = str_replace($basePath, '', $videoUrl); @endphp {{ $filename }}
@endforeach @else --- @endif
@if($item->photo1) @php $basePath = 'https://anuvratgeet-media.s3.ap-south-1.amazonaws.com/photo1/'; $filename = str_replace($basePath, '',$item->photo1); @endphp {{ $filename }} @else --- @endif @if($item->photo2) @php $basePath = 'https://anuvratgeet-media.s3.ap-south-1.amazonaws.com/photo2/'; $filename = str_replace($basePath, '',$item->photo2); @endphp {{ $filename }} @else --- @endif {{ $item->centreHeadName ? $item->centreHeadName : '---' }} {{ $item->phone }} {{ $item->designation1 ? $item->designation1 : '---' }} {{ $item->witness1 ? $item->witness1 : '---' }} {{ $item->witness1phone ? $item->witness1phone : '---' }} {{ $item->designation2 ? $item->designation2 : '---' }} {{ $item->witness2 ? $item->witness2 : '---' }} {{ $item->witness2phone ? $item->witness2phone : '---' }} {{ $item->designation3 ? $item->designation3 : '---' }} {{ $item->organized ? $item->organized : '---' }}
GRAND TOTAL {{ $getCount->totalAttCount }} {{ $getCount->totalPledgeCount }}