@extends('layouts.main') @section('content')
{!! $title !!}
@foreach($sales as $sale) @endforeach
Sale ID Date Item Customer Type Phone Quantity Buying price Selling price Discount Amount Gross Profit By Ref
{{$sale->mainsales_id}} {{ Carbon\Carbon::parse($sale->period_recorded)->format('d M Y') }} {{$sale->stock->name}} {{$sale->size}} {{number_format($sale->buying_price)}} {{number_format($sale->amount)}} {{number_format($sale->discount)}} {{number_format($main_sale)}} {{number_format($profit)}} {{$sale->mainsale->user->name}} {{ $sale->mainsale->sale_reference }}
Total {{number_format($sum_discount)}} {{number_format($sum)}} {{number_format($sum_profit)}}
@endsection