@extends('Web/App') @section('main-content') @include('Web/Layouts/minibanner')
@php $materials = []; @endphp @foreach ($materials as $item) @php $is_even = $loop->index % 2 == 0; $reverse_col_sm = ''; if($is_even){ $reverse_col_sm = 'reverse_columns'; } @endphp

Material Title

Student name
{{--
--}}
@if(!$is_even) {{-- If it's even number Image first--}}
@endif
@php $tmp_text = 'Ullamco esse sunt et reprehenderit aute nulla sint. Consequat tempor labore magna tempor dolor eiusmod laboris enim duis incididunt enim velit non proident. In aute occaecat laborum quis elit minim ad sint exercitation consectetur. Ullamco mollit ut commodo anim esse nostrud nostrud in magna dolore enim exercitation ullamco. Adipisicing deserunt exercitation pariatur et quis ad. Aute sit cillum occaecat exercitation minim sunt non cillum reprehenderit laborum. Id nostrud incididunt laborum fugiat pariatur eiusmod eu anim duis officia.'; $tmp_text = implode(' ', array_slice(explode(' ',$tmp_text), 0, 50)); @endphp {!!$tmp_text!!} . . .
@if($is_even) {{-- If it's even number Image second--}}
@endif

@endforeach @if (count($materials) < 1)
Please Check later
@endif
@endsection