@extends('layouts.app') @section('content')
{{ _lang('Sales Report') }}
{{ csrf_field() }}
@php $date_format = get_option('date_format','Y-m-d'); @endphp @php $currency = currency(); @endphp

{{ _lang('Sales Report') }}

{{ isset($date1) ? date($date_format, strtotime($date1)).' '._lang('to').' '.date($date_format, strtotime($date2)) : '---------- '._lang('to').' ----------' }}
@if(isset($report_data)) @foreach($report_data as $report) @endforeach @endif
{{ _lang('Date') }} {{ _lang('Orders') }} {{ _lang('Products') }} {{ _lang('Subtotal') }} {{ _lang('Shipping') }} {{ _lang('Discount') }} {{ _lang('Total') }}
{{ $report->created_at }} {{ $report->total_orders }} {{ $report->total_products }} {!! xss_clean(decimalPlace($report->sub_total, $currency)) !!} {!! xss_clean(decimalPlace($report->shipping_cost, $currency)) !!} {!! xss_clean(decimalPlace($report->discount, $currency)) !!} {!! xss_clean(decimalPlace($report->total, $currency)) !!}
@endsection