@extends('layouts.app') @section('css') {{-- Datatable --}} @endsection @section('content')
@php $date = '' ; $url = url()->current(); $chkYearMonth = 'sale_report_filterwise'; if (strpos($url, $chkYearMonth) == true) { $date = $reportOn; } else { $date = formatDate($reportDate); } @endphp
{{ __('Sales Report On') }} {{$date}}
@foreach ($saleData as $data) @foreach ($data->saleOrderDetails as $item) @endforeach @endforeach
{{ formatCurrencyAmount($sales_total, $currency_symbol) }}
{{ __('Sales value') }}
{{ formatCurrencyAmount($cost_total, $currency_symbol)}}
{{ __('Cost Value') }}
{{ formatCurrencyAmount($tax_total, $currency_symbol)}}
{{ __('Tax') }}
@if($profit_total<0) -{{ formatCurrencyAmount(abs($profit_total), $currency_symbol)}} @else {{ formatCurrencyAmount(abs($profit_total), $currency_symbol)}} @endif
@if($profit_total<0) {{ __('Profit') }} @else {{ __('Profit') }} @endif
@foreach ($saleData as $data) @foreach ($data->saleOrderDetails as $item) @endforeach @if (isset($data->customer->id) && !empty($data->customer->id)) @else @endif @endforeach
{{ __('Order No') }} {{ __('Customer') }} {{ __('Quantity') }} {{ __('Sales value') }}({{ $currency_symbol }}) {{ __('Cost Value') }}({{ $currency_symbol }}) {{ __('Tax') }}({{ $currency_symbol }}) {{ __('Discount') }}({{ $currency_symbol }}) {{ __('Profit') }}({{ $currency_symbol }})
{{ $data->reference }}{{ $data->customer->name }}{{__('Walking Customer')}}{{ $qty }} {{ formatCurrencyAmount($sales_price) }} {{ formatCurrencyAmount($purchase_price) }} {{ formatCurrencyAmount($tax) }} @php if ($itemDiscountAmount + $otherDiscountAmount > 0 ) { $discount = formatCurrencyAmount($itemDiscountAmount + $otherDiscountAmount); } else { $discount = '-'; } @endphp {{ $discount }} {{ formatCurrencyAmount($profit) }}
{{ formatCurrencyAmount($profit_margin).'%' }}
@endsection @section('js') @endsection