@include('admin.layout.laravel_errors')
Id |
Status |
Category |
Product |
Price |
Quantity |
Total Price |
Date |
Detail |
Edit |
Delete |
@forelse($sales as $i=>$sale)
{{ $i+1 }} |
@if($sale->payment_status==0)
Unpaid
@else
Paid
@endif
|
{{ ($sale->category_data) ? $sale->category_data->name : '--' }} |
{{ ($sale->subcategory_data) ? $sale->subcategory_data->name : '--' }} |
{{ ($sale->price) ? number_format($sale->price) : '--' }} |
{{ ($sale->quantity) ? $sale->quantity : '--' }} |
{{ ($sale->total_price) ? number_format($sale->total_price) : '--' }} |
{{ ($sale->date) ? Carbon::parse($sale->date)->format("d-m-Y") : '--' }} |
{{ ($sale->sale_detail) ? $sale->sale_detail : '--' }} |
|
|
@empty
@endforelse
Total Sale
|
RS {{ number_format($total) }} |
|