@if ($course->discount)
{{--
{{ $course->price . ' ' . __('home.SAR') }}
-{{ round((($course->price - $course->last_price()) / $course->price) * 100,2) }}%--}}
{{ $course->last_price() . ' ' . __('home.SAR') }}
{{ $course->price . ' ' . __('home.SAR') }}
@if(isset($course->discount->end_date))
@php
$end_date = \Carbon\Carbon::parse($course->discount->end_date);
$daysLeft = \Carbon\Carbon::now()->diffInDays($end_date);
@endphp
{{ $daysLeft }} @lang('home.Day left at this price!')
@endif
@else
{{ $course->last_price() . ' ' . __('home.SAR') }}
@endif
{{ $course->{'name_' . $lang} }}
{{ $course->field->{'name_' . $lang} }}
{{--
@if($course->teachers())
@foreach ($course->teachers() as $teacher)
{{ $teacher->name }}
@if (!$loop->last)
/
@endif
@endforeach
@endif
@if ($course->rate != 0)
{{ $course->rate }}
@endif
@for ($i = 1; $i <= $rate; $i++)
@endfor
@for ($i = 1; $i <= 5 - $rate; $i++)
@endfor
--}}
{{ $course->type->{'name_'.$lang} }}
{{ $course->duration }}
{{ $course->overall_days }}
{{ $course->field->{'name_' . $lang} }}
{{--
@if ($course->{'text_'.$lang})
{{ substr(strip_tags($course->{'text_'.$lang}), 0, 150).'... ' }}
@endif
@if($course->points())
@foreach ($course->points() as $point)
- {{$point->{'text_'.$lang} }}
@endforeach
@endif
--}}