@extends('backend.layout.main') @section('content')

{{trans('file.Summary Report')}}

{!! Form::open(['route' => 'report.profitLoss', 'method' => 'post']) !!}
{{Form::close()}}

{{trans('file.Purchase')}}


{{trans('file.grand total')}} {{number_format((float)$purchase[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Purchase')}} {{$total_purchase}}

{{trans('file.Paid')}} {{number_format((float)$purchase[0]->paid_amount, $general_setting->decimal, '.', '')}}

{{trans('file.Tax')}} {{number_format((float)$purchase[0]->tax, $general_setting->decimal, '.', '')}}

{{trans('file.Discount')}} {{number_format((float)$purchase[0]->discount, $general_setting->decimal, '.', '')}}

{{trans('file.Sale')}}


{{trans('file.grand total')}} {{number_format((float)$sale[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Shipping Cost')}} {{number_format((float)$sale[0]->shipping_cost, $general_setting->decimal, '.', '')}}

{{trans('file.Sale')}} {{$total_sale}}

{{trans('file.Paid')}} {{number_format((float)$sale[0]->paid_amount, $general_setting->decimal, '.', '')}}

{{trans('file.Tax')}} {{number_format((float)$sale[0]->tax, $general_setting->decimal, '.', '')}}

{{trans('file.Discount')}} {{number_format((float)$sale[0]->discount, $general_setting->decimal, '.', '')}}

{{trans('file.Sale Return')}}


{{trans('file.grand total')}} {{number_format((float)$return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Return')}} {{$total_return}}

{{trans('file.Tax')}} {{number_format((float)$return[0]->tax, $general_setting->decimal, '.', '')}}

{{trans('file.Purchase Return')}}


{{trans('file.grand total')}} {{number_format((float)$purchase_return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Return')}} {{$total_purchase_return}}

{{trans('file.Tax')}} {{number_format((float)$purchase_return[0]->tax, $general_setting->decimal, '.', '')}}

{{trans('file.profit')}} / {{trans('file.Loss')}}


{{trans('file.Sale')}} {{number_format((float)$sale[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Product Cost')}} - {{number_format((float)$product_cost, $general_setting->decimal, '.', '')}}

{{trans('file.profit')}} {{number_format((float)($sale[0]->grand_total - $product_cost), $general_setting->decimal, '.', '')}}

{{trans('file.profit')}} / {{trans('file.Loss')}}


{{trans('file.Sale')}} {{number_format((float)$sale[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Product Cost')}} - {{number_format((float)$product_cost, $general_setting->decimal, '.', '')}}

{{trans('file.Sale Return')}} - {{number_format((float)$return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Purchase Return')}} {{number_format((float)$purchase_return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.profit')}} {{number_format((float)($sale[0]->grand_total - $product_cost - $return[0]->grand_total + $purchase_return[0]->grand_total), $general_setting->decimal, '.', '')}}

{{trans('file.Net Profit')}} / {{trans('file.Net Loss')}}


{{number_format((float)(($sale[0]->grand_total-$sale[0]->shipping_cost-$sale[0]->tax) - ($product_cost-$product_tax) - ($return[0]->grand_total-$return[0]->tax) + ($purchase_return[0]->grand_total-$purchase_return[0]->tax) - $expense), $general_setting->decimal, '.', '')}}

({{trans('file.Sale')}} {{number_format((float)($sale[0]->grand_total), $general_setting->decimal, '.', '')}} - {{trans('file.Shipping Cost')}} {{number_format((float)($sale[0]->shipping_cost), $general_setting->decimal, '.', '')}}) - {{trans('file.Tax')}} {{number_format((float)($sale[0]->tax), $general_setting->decimal, '.', '')}}) - ({{trans('file.Product Cost')}} {{number_format((float)($product_cost), $general_setting->decimal, '.', '')}} - {{trans('file.Tax')}} {{number_format((float)($product_tax), $general_setting->decimal, '.', '')}}) - ({{trans('file.Return')}} {{number_format((float)($return[0]->grand_total), $general_setting->decimal, '.', '')}} - {{trans('file.Tax')}} {{number_format((float)($return[0]->tax), $general_setting->decimal, '.', '')}}) + ({{trans('file.Purchase Return')}} {{number_format((float)($purchase_return[0]->grand_total), $general_setting->decimal, '.', '')}} - {{trans('file.Tax')}} {{number_format((float)($purchase_return[0]->tax), $general_setting->decimal, '.', '')}}) - ({{trans('file.Expense')}} {{number_format((float)($expense), $general_setting->decimal, '.', '')}})

{{trans('file.Payment Recieved')}}


{{trans('file.Amount')}} {{number_format((float)$payment_recieved, $general_setting->decimal, '.', '')}}

{{trans('file.Recieved')}} {{$payment_recieved_number}}

Cash {{number_format((float)$cash_payment_sale, $general_setting->decimal, '.', '')}}

Cheque {{number_format((float)$cheque_payment_sale, $general_setting->decimal, '.', '')}}

Credit Card {{number_format((float)$credit_card_payment_sale, $general_setting->decimal, '.', '')}}

Gift Card {{number_format((float)$gift_card_payment_sale, $general_setting->decimal, '.', '')}}

Paypal {{number_format((float)$paypal_payment_sale, $general_setting->decimal, '.', '')}}

Deposit {{number_format((float)$deposit_payment_sale, $general_setting->decimal, '.', '')}}

{{trans('file.Payment Sent')}}


{{trans('file.Amount')}} {{number_format((float)$payment_sent, $general_setting->decimal, '.', '')}}

{{trans('file.Recieved')}} {{$payment_sent_number}}

Cash {{number_format((float)$cash_payment_purchase, $general_setting->decimal, '.', '')}}

Cheque {{number_format((float)$cheque_payment_purchase, $general_setting->decimal, '.', '')}}

Credit Card {{number_format((float)$credit_card_payment_purchase, $general_setting->decimal, '.', '')}}

{{trans('file.Expense')}}


{{trans('file.Amount')}} {{number_format((float)$expense, $general_setting->decimal, '.', '')}}

{{trans('file.Expense')}} {{$total_expense}}

{{trans('file.Payroll')}}


{{trans('file.Amount')}} {{number_format((float)$payroll, $general_setting->decimal, '.', '')}}

{{trans('file.Payroll')}} {{$total_payroll}}

{{trans('file.Cash in Hand')}}


{{trans('file.Recieved')}} {{number_format((float)($payment_recieved), $general_setting->decimal, '.', '')}}

{{trans('file.Sent')}} - {{number_format((float)($payment_sent), $general_setting->decimal, '.', '')}}

{{trans('file.Sale Return')}} - {{number_format((float)$return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Purchase Return')}} {{number_format((float)$purchase_return[0]->grand_total, $general_setting->decimal, '.', '')}}

{{trans('file.Expense')}} - {{number_format((float)$expense, $general_setting->decimal, '.', '')}}

{{trans('file.Payroll')}} - {{number_format((float)$payroll, $general_setting->decimal, '.', '')}}

{{trans('file.In Hand')}} {{number_format((float)($payment_recieved - $payment_sent - $return[0]->grand_total + $purchase_return[0]->grand_total - $expense - $payroll), $general_setting->decimal, '.', '')}}

@foreach($warehouse_name as $key => $name)

{{$name}}

{{number_format((float)($warehouse_sale[$key][0]->grand_total - $warehouse_purchase[$key][0]->grand_total - $warehouse_return[$key][0]->grand_total + $warehouse_purchase_return[$key][0]->grand_total), $general_setting->decimal, '.', '')}}

{{trans('file.Sale')}} {{number_format((float)($warehouse_sale[$key][0]->grand_total), $general_setting->decimal, '.', '')}} - {{trans('file.Purchase')}} {{number_format((float)($warehouse_purchase[$key][0]->grand_total), $general_setting->decimal, '.', '')}} - {{trans('file.Sale Return')}} {{number_format((float)($warehouse_return[$key][0]->grand_total), $general_setting->decimal, '.', '')}} + {{trans('file.Purchase Return')}} {{number_format((float)($warehouse_purchase_return[$key][0]->grand_total), $general_setting->decimal, '.', '')}}


{{number_format((float)(($warehouse_sale[$key][0]->grand_total - $warehouse_sale[$key][0]->tax) - ($warehouse_purchase[$key][0]->grand_total - $warehouse_purchase[$key][0]->tax) - ($warehouse_return[$key][0]->grand_total - $warehouse_return[$key][0]->tax) + ($warehouse_purchase_return[$key][0]->grand_total - $warehouse_purchase_return[$key][0]->tax) ), $general_setting->decimal, '.', '')}}

{{trans('file.Net Sale')}} {{number_format((float)($warehouse_sale[$key][0]->grand_total - $warehouse_sale[$key][0]->tax), $general_setting->decimal, '.', '')}} - {{trans('file.Net Purchase')}} {{number_format((float)($warehouse_purchase[$key][0]->grand_total - $warehouse_purchase[$key][0]->tax), $general_setting->decimal, '.', '')}} - {{trans('file.Net Sale Return')}} {{number_format((float)($warehouse_return[$key][0]->grand_total - $warehouse_return[$key][0]->tax), $general_setting->decimal, '.', '')}} + {{trans('file.Net Purchase Return')}} {{number_format((float)($warehouse_purchase_return[$key][0]->grand_total - $warehouse_purchase_return[$key][0]->tax), $general_setting->decimal, '.', '')}}


{{number_format((float)$warehouse_expense[$key], $general_setting->decimal, '.', '')}}

{{trans('file.Expense')}}

@endforeach
@endsection @push('scripts') @endpush