@foreach ($data as $item)
@php
$company_tags='
';
$type=$item->model;
if($type=="test"){
$type="Test";
}elseif($type=="courses"){
$type="Course";
}elseif($type=="test-series"){
$type="Test Series";
}elseif($type=="study-guide"){
$type="Study Guide";
}
@endphp
{{round((($item->price - $item->selling_price)/$item->price)*100,2)}}% off
- {{$item->title}}
- {{$type}}
@if($type!="Study Guide")
- Price: INR {{$item->price}} {{$item->selling_price}}
- Validity : {{$item->validity}} Days
Description : {{words_limit($item->description, 10)}}
@endif
{{-- @if($item->att!="" && $item->model!="study-guide")
- Skill: {{preg_replace('/,/', ', ', $item->att)}}
@endif
@if($item->c_att!="")
- Company: {{preg_replace('/,/', ', ', $item->c_att)}}
@endif --}}
{{-- {{words_limit($item->description, 30)}}
--}}
{{--
{{$item->price}}
{{$item->selling_price}}
- {{$item->title}}
- {{$type}}
@if($type!="Study Guide")
- Validity :
Description: {{words_limit($item->description, 10)}}
@endif
--}}
@endforeach
@if($data instanceof \Illuminate\Pagination\LengthAwarePaginator )
{!! $data->links() !!}
@endif