@foreach ($items as $key => $item) @endforeach
@lang('SL') @lang('Type') @lang('Description') @lang('Status') @lang('Created Date') @lang('Modify Date') @lang('Actions')
{{ ($items->currentpage() - 1) * $items->perpage() + $key + 1 }} {{ Str::ucfirst($item->operation_type) }} @php // Split the description into an array of words $words = explode(' ', $item->description); $lines = array_chunk($words, 8); // Break the array into chunks of 8 words @endphp status == 'pending') style="color:red;" @else style="color:green;" @endif> @foreach ($lines as $line) {{ implode(' ', $line) }} @endforeach status == 'pending') style="color:red;" @else style="color:green;" @endif> {{ Str::ucfirst($item->status) }} {{ $item->created_date }} {{ $item->updated_date }}
@if ($items instanceof \Illuminate\Pagination\LengthAwarePaginator) {{ $items->links('layouts.paginate') }} @endif