@php
$discount_price = $value->discounted_price;
if(strpos($discount_price,'.') !== false) {
$new_discount_price=ceil(number_format((float)round($discount_price), 2, '.', ''));
}else{
$new_discount_price= $value->discounted_price;
}
$price = $value->price;
if (strpos($price,'.') !== false) {
$new_price=ceil(number_format((float)round($price), 2, '.', ''));
}else{
$new_price= $value->price;
}
$pcartprice =0;
$pcartprice = ($new_discount_price) ? $new_discount_price : $new_price;
@endphp
@php
$photos =array();
if( !empty($value->product_image))
{
$photos = unserialize( $value->product_image);
if(count($photos)>0)
{
$img_path=url('/logo/'.$photos['product_image']);
@endphp
@foreach($educators as $educator)
{{-- {{ $educator->id }} --}}
@if($value->faculty_name==$educator->id )
By {{$educator->coaching_classes}}
@endif
@endforeach
@php
$discount_price = $value->discounted_price;
if(strpos($discount_price,'.') !== false) {
$new_discount_price=ceil(number_format((float)round($discount_price), 2, '.', ''));
}else{
$new_discount_price= $value->discounted_price;
}
@endphp
Rs.{{ $value->price }}
Rs.{{ $new_discount_price }}