@extends('layouts.template') @section('template')

Profit Details

{!! csrf_field() !!}


@if(isset($start_date)) Print/Download as PDF @endif
@php $profit = 0; @endphp @foreach($date_to_date_sales as $key => $data) @php $profit += (($data->quantity * $data->sales_price) - ($data->quantity * $data->costing_rate)); @endphp @endforeach
Sl No. Item Qty Costing Rate Costing Amount Sales Rate Sales Amount Profit
{{ ++$key }} {{ $data->item_name }} {{ $data->quantity }} {{ $data->costing_rate }} {{ $data->quantity * $data->costing_rate }} {{ $data->sales_price }} {{ $data->quantity * $data->sales_price }} {{ ($data->quantity * $data->sales_price) - ($data->quantity * $data->costing_rate) }}
TOTAL PROFIT {{ $profit }}
@endsection