@extends('layouts.app') @section('css') {{-- Datatable --}} @endsection @section('content')
| {{ __('Order No') }} | {{ __('Customer') }} | {{ __('Quantity') }} | {{ __('Sales value') }}({{ $currency_symbol }}) | {{ __('Cost Value') }}({{ $currency_symbol }}) | {{ __('Tax') }}({{ $currency_symbol }}) | {{ __('Discount') }}({{ $currency_symbol }}) | {{ __('Profit') }}({{ $currency_symbol }}) | |
|---|---|---|---|---|---|---|---|---|
| {{ $data->reference }} | @if (isset($data->customer->id) && !empty($data->customer->id)){{ $data->customer->name }} | @else{{__('Walking Customer')}} | @endif{{ $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).'%' }} |