{{-- flash message starts here --}}
@if ($errors->any())
@endif
@if(Session::has('success'))
{{-- flash message ends here --}}
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{Session::get('success')}}
@endif
{{-- filters starts --}}
{{-- filters --}}
{{-- @include('admin.partials.filters.locationFilter') --}}
{{-- filters ends --}}
{{-- Filters --}}
{{-- All time wise sales starts --}}
{{-- All time wise sales ends --}}
{{-- Date wise sales starts --}}
{{-- Date wise sales ends --}}
{{-- Discount given starts--}}
{{-- Discount given ends--}}
{{-- Completed Transactions starts --}}
{{-- Completed Transactions ends --}}
{{-- Failed Transactions starts --}}
{{-- Failed Transactions ends --}}
{{-- Incomplete Transactions starts --}}
{{-- Incomplete Transactions ends --}}
{{-- Unit Solds starts --}}
{{-- Unit Solds Transactions ends --}}
{{-- Most bought product start --}}
{{-- Most bought product start --}}
{{-- Discount Coupons starts --}}
{{-- Discount Coupons ends --}}
{{-- Products starts here --}}
{{-- Products ends here --}}
Discount Coupons
# | Coupon | # of times used | Sales | Created On |
---|---|---|---|---|
{{$sr}} |
{{$discount->coupon}} |
{{$times_used->count()}} |
{{$times_used->sum('total')}} |
{{ date('d/m/Y' ,strtotime($discount->created_at)) }} |
Products
@if( count($products) != 0 )
@else
@endif
# | Image | Title | Total Sales | Total Unit Sold |
---|---|---|---|---|
{{$sr}} |
@php $imageArray = json_decode($product->images); if(!empty($imageArray)){ foreach($imageArray as $imageData){ $image = $imageData; break; } }else{ $image = null; } @endphp @if(!empty($image) && !empty($image->url)) @endif |
{{$product->title}} |
{{$sale}} |
{{$quantity}} |