@foreach ($return_files as $file)
@php
$dateString = $file->year;
$date = Carbon::createFromFormat('MY', $dateString);
$formattedDate = $date->format('M - d');
@endphp
@if(!$file->return_type_gstr3b)
@elseif($file->return_type_gstr3b)
@endif
@endforeach
{{-- @foreach ($return_files_gstr3b as $file)
@if($file->return_type_gstr3b)
@php
$dateString = $file->year;
$date = Carbon::createFromFormat('MY', $dateString);
$formattedDate = $date->format('M - d');
@endphp
@endif
@endforeach --}}