@extends('Layouts.frontLayout',['classBody'=>"page-template-default page logged-in setinco page-wrapper-account page-wrapper-page container-max-width show-bottom-nav"]) @section('title') {{__('Dashboard')}} @endsection @section('content') @php $date = \Morilog\Jalali\Jalalian::now()->getTimestamp(); @endphp
{{__('Home')}} / {{__('Dashboard')}}

{{__('Dashboard')}}

@include('Front.Account.menu')

{{__('Orders')}}‌ {{__('View All')}}

status-processing
{{$data['orders']->whereIn('status',[1,2])->count()}} {{__('Order')}}
{{__('Doing')}}
status-delivered
{{$data['orders']->whereIn('status',3)->count()}} {{__('Order')}}
{{__('Completed')}}
status-returned
{{$data['orders']->where('status',4)->count()}} {{__('Order')}}
{{__('Canceled')}}

{{__('Latest Products')}} {{__('View All')}}

@foreach($data['listProduct'] as $product)
{{$product->title}}

{{$product->title}}

@if(sizeof($product->prices) >0)
{{__('Available In Stock')}}
@else
{{__('Not Available In Stock')}}
@endif
@if(sizeof($product->prices) >0)
@if($product->prices[0]->discount_percent>0 and $product->prices[0]->time_discount==1 and $date < $product->prices[0]->end_date) {{$product->prices[0]->discount_percent}}% @endif @if($product->prices[0]->discount_percent>0 and $product->prices[0]->time_discount==1 and $date < $product->prices[0]->end_date) {{fnumber_format($product->prices[0]->price)}}   {{$prefix}} {{fnumber_format(PriceCalculation($product->prices[0]->price,$product->prices[0]->discount_percent))}}   {{$prefix}} @else {{fnumber_format($product->prices[0]->price)}}   {{$prefix}} @endif
@endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
{{__('Close')}}
@php if (sizeof($product->prices)>0) { if ($product->prices[0]->AttributeValue != null) { $attributeTitle = $product->prices[0]->AttributeValue->attribute->title . ' : '; $attributeId = $product->prices[0]->AttributeValue->attribute->id; } else { $attributeTitle = ''; $attributeId = 0; } } else { $attributeTitle = ''; $attributeId = 0; } @endphp
@if(count($product->prices)>0)
@csrf
@php $i=0;@endphp @foreach($product->prices as $price) @if($price->AttributeValue!=null) @if($i==0) @php $checked='checked';@endphp @php $btnActive='btn-active';@endphp @else @php $checked='';@endphp @php $btnActive='no-active';@endphp @endif @if(isset($price->AttributeValue->property) and $price->AttributeValue->property!= '' )
@else
@endif @endif @php $i++;@endphp @endforeach
@php $i=0;@endphp @foreach($product->prices as $price) @if($i==0) @php $d_none='block';@endphp @else @php $d_none='none';@endphp @endif
@if($price->discount_percent>0 and $price->time_discount==1 and $date < $price->end_date) {{$price->discount_percent}}% {{fnumber_format($price->price)}}  {{$prefix}} {{fnumber_format(PriceCalculation($price->price,$price->discount_percent))}}   {{$prefix}} @else {{fnumber_format($price->price)}}   {{$prefix}} @endif
@php $i++;@endphp @endforeach
@if(sizeof($product->prices)>0)
- +
@endif
@endif
@endif
@if(isset($settings['quick_purchase']) and $settings['quick_purchase']==1)
@endif
@if(isset($settings['quick_view']) and $settings['quick_view']==1) @php $tags=explode(',',$product->keywords); $tagsAll='';@endphp @php $arrayAttributes_list=[];@endphp @if(isset($product->short_description) and $product->short_description !=null) @php $arrayAttributes_list=json_decode($product->short_description); @endphp @endif
@endif
@if(sizeof($product->prices)>0) @if($product->prices[0]->discount_percent>0 and $product->prices[0]->time_discount==1 and $date < $product->prices[0]->end_date)
{{__('Discount')}}
@endif @endif
{{$product->title}}
@endforeach
{{__('Preview')}}

{{__('Attributes')}}
@endsection @section('script') @endsection