@foreach($students as $key=> $student) @if((isset($students[$key+1]) && $student->status_deb==null && $student->serial_std !== $students[$key+1]->serial_std) || (isset($students[$key+1]) && $student->status_deb!=null) || ($key==(count($students))-1) ) @endif @endforeach
{{utf8_decode($school_setup->name_sst)}}
{{$school_setup->address_sst}}
AÑO LECTIVO: {{$school_year->name_scy}}
N CURSO ESTUDIANTE CEDULA ESTUDIANTE FECHA DE NCIMIENTO DEL ESTUDIANTE CEDULA FACTURA NOMBRE PARA FACTURA DIRECCIÓN TELEFONO EMAIL RUBROS VALORES
{{$count}} {{utf8_decode($student->name_lvl)}} {{utf8_decode($student->last_name_std)}} {{utf8_decode($student->first_name_std)}} {{utf8_decode($student->id_std)}} {{utf8_decode($student->birthdate_std)}} {{utf8_decode($student->id_grd)}} {{utf8_decode($student->last_name_grd)}} {{utf8_decode($student->first_name_grd)}} {{utf8_decode($student->main_street_gda)}} {{utf8_decode($student->number_gda)}} {{utf8_decode($student->secondary_street_gda)}} {{utf8_decode($student->phone_grd)}} {{utf8_decode($student->email_grd)}} @if(strpos($student->name_pct, '<')) {{utf8_decode(substr($student->name_pct, 0, strpos($student->name_pct, '<')))}} @else {{utf8_decode($student->name_pct)}} @endif {{utf8_decode($student->total_deb)}}