{{ $franchiseCurrency }} {{ number_format($stats['pending'],2) }}
Pending Amount
{{ $franchiseCurrency }} {{ number_format($stats['paid'],2) }}
Paid Amount
status == 'pending')class="table-warning" @elseif($order->status == 'paid')class="table-success"@endif>{{ $order->tax_invoice_date_formatted }} | status == 'pending')class="table-warning" @elseif($order->status == 'paid')class="table-success"@endif>{{ $order->ti_serial_number }} @if ($order->currency_conversion_flag == 1) (Euro) @endif | status == 'pending')class="table-warning" @elseif($order->status == 'paid')class="table-success"@endif>@if(isset($order->company)){{ $order->company->name }}@else - @endif | @if($order->description && strlen(strip_tags($order->description)) > 100) {!! substr(strip_tags($order->description) , 0, 100) !!}... @elseif($order->description && strlen(strip_tags($order->description)) <= 100) {!! strip_tags($order->description) !!} @else - @endif | @php $splitAllTaxTotal = []; @endphp @foreach($departments as $department) @php $printEmptyTd = true; @endphp @if($department->subdepts->count() != 0) @foreach($department->subdepts as $sub_dept) @if($order->subsplits()->where('sub_department_id', $sub_dept->id)->count() != 0) @php $groupBySplits = $order->subSplits->groupBy('sub_department_id'); @endphp @foreach($groupBySplits as $key => $split) @if($key == $sub_dept->id) @php $printEmptyTd = false; $splitAmount = $order->subSplits->where('sub_department_id', $key)->sum('amount'); $splitTax = $totalTax * $splitAmount /100; $splitAllTax = []; $splitAllTaxOnlyName = []; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; $taxKey = $tax->tax_value .'% ' . $taxName; $splitAllTax[$taxKey] = $tax->tax_value * $splitAmount / 100; $splitAllTaxOnlyName[$taxName] = $tax->tax_value * $splitAmount / 100; // currency wise po amount (only tax) if(!isset($splitAllTaxTotal[$taxKey])) $splitAllTaxTotal[$taxKey] = $tax->tax_value * $splitAmount / 100; else $splitAllTaxTotal[$taxKey] += $tax->tax_value * $splitAmount / 100; } $splitSubTotal = $splitAmount + $splitTax; $convertedSplitTotalAmount = $order->currency == 'USD' ? $splitAmount * $order->conversion_rate : $order->subSplits->where('sub_department_id', $key)->sum('amount'); $convertedSplitTaxAmount = $order->currency == 'USD' ? $totalTax * $convertedSplitTotalAmount / 100 : $splitTax; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; $convertedSplitTaxAmountWithName[$taxName] = $order->currency == 'USD' ? $tax->tax_value * $convertedSplitTotalAmount / 100 : $tax->tax_value * $splitAmount / 100; } $convertedSplitSubTotalAmount = $order->currency == 'USD' ? $convertedSplitTotalAmount + $convertedSplitTaxAmount: $splitSubTotal; // start month wise total of sub department // currency wise total (department wise) (for sub department) if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['totalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['totalAmount'] = $splitAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['totalAmount'] += $splitAmount; foreach($splitAllTaxOnlyName as $key => $tax) { if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['taxAmount'][$key])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['taxAmount'][$key] = $tax; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['taxAmount'][$key] += $tax; } if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['subTotalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['subTotalAmount'] = $splitSubTotal; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id][$order->currency]['subTotalAmount'] += $splitSubTotal; // aggregate currency wise total (department wise) if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['totalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['totalAmount'] = $convertedSplitTotalAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['totalAmount'] += $convertedSplitTotalAmount; foreach($splitAllTaxOnlyName as $key => $tax) { if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$key])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$key] = $convertedSplitTaxAmountWithName[$key]; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$key] += $convertedSplitTaxAmountWithName[$key]; } if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'] = $convertedSplitSubTotalAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'] += $convertedSplitSubTotalAmount; // end month wise total of sub department // start month wise department total // aggregate currency wise dapartment total (monthly) if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'] = $convertedSplitTotalAmount; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'] += $convertedSplitTotalAmount; foreach($splitAllTaxOnlyName as $key => $tax) { if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key] = $convertedSplitTaxAmountWithName[$key]; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key] += $convertedSplitTaxAmountWithName[$key]; } if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'] = $convertedSplitSubTotalAmount; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'] += $convertedSplitSubTotalAmount; // end month wise department total // start grand total of sub department // grand total currency wise total (department wise) if(!isset($grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['totalAmount'])) $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['totalAmount'] = $splitAmount; else $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['totalAmount'] += $splitAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['taxAmount'][$taxName])) $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['taxAmount'][$taxName] = $splitAllTaxOnlyName[$taxName]; else $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['taxAmount'][$taxName] += $splitAllTaxOnlyName[$taxName]; } if(!isset($grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['subTotalAmount'])) $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['subTotalAmount'] = $splitSubTotal; else $grandTotalSplit[$department->id][$sub_dept->id][$order->currency]['subTotalAmount'] += $splitSubTotal; // grand total aggregate currency wise total (department wise) if(!isset($grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['totalAmount'])) $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['totalAmount'] = $convertedSplitTotalAmount; else $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['totalAmount'] += $convertedSplitTotalAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$taxName])) $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$taxName] = $convertedSplitTaxAmountWithName[$taxName]; else $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['taxAmount'][$taxName] += $convertedSplitTaxAmountWithName[$taxName]; } if(!isset($grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'])) $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'] = $convertedSplitSubTotalAmount; else $grandTotalSplit[$department->id][$sub_dept->id]['allCurrency']['subTotalAmount'] += $convertedSplitSubTotalAmount; // end grand total of sub department // start grand total of department // grand total aggregate currency wise total (department wise) if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'])) $deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'] = $convertedSplitTotalAmount; else $deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'] += $convertedSplitTotalAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName])) $deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName] = $convertedSplitTaxAmountWithName[$taxName]; else $deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName] += $convertedSplitTaxAmountWithName[$taxName]; } if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'])) $deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'] = $convertedSplitSubTotalAmount; else $deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'] += $convertedSplitSubTotalAmount; // end grand total of department @endphp @if($order->currency == $franchiseCurrency)
ST: {{ number_format($splitAmount,2) }} @foreach($splitAllTax as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax,2) }} @endif @endforeachGT: {{ number_format($splitSubTotal,2) }} |
@elseif($order->currency == 'USD') |
ST: {{ number_format($splitAmount,2) }} @foreach($splitAllTax as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax,2) }} @endif @endforeachGT: {{ number_format($splitSubTotal,2) }} |
@endif
@endif
@endforeach
@else
@php
$printEmptyTd = false;
if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id]))
$splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id][$sub_dept->id] = null;
if(!isset($grandTotalSplit[$department->id][$sub_dept->id]))
$grandTotalSplit[$department->id][$sub_dept->id] = null;
@endphp
@endif @endforeach @if($printEmptyTd) | @endif @elseif($order->splits()->whereType('dept')->whereDepartmentId($department->id)->count() != 0) @php // calculation st, tax and gt for order departments $deptsplitAmount = $order->splits->where('department_id', $department->id)->sum('amount'); // group by department wise amount $deptsplitTax = $totalTax * $deptsplitAmount /100; $deptsplitAllTax = []; $deptsplitAllTaxOnlyName = []; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; $taxKey = $tax->tax_value .'% ' . $taxName; $deptsplitAllTax[$taxKey] = $tax->tax_value * $deptsplitAmount / 100; $deptsplitAllTaxOnlyName[$taxName] = $tax->tax_value * $deptsplitAmount / 100; // currency wise po amount (only tax) if(!isset($deptsplitAllTaxTotal[$taxKey])) $splitAllTaxTotal[$taxKey] = $tax->tax_value * $deptsplitAmount / 100; else $splitAllTaxTotal[$taxKey] += $tax->tax_value * $deptsplitAmount / 100; } $deptsplitSubTotal = $deptsplitAmount + $deptsplitTax; $deptconvertedSplitTotalAmount = $order->currency == 'USD' ? $deptsplitAmount * $order->conversion_rate : $order->splits->where('department_id', $department->id)->sum('amount'); $deptconvertedSplitTaxAmount = $order->currency == 'USD' ? $totalTax * $deptconvertedSplitTotalAmount / 100 : $deptsplitTax; // count tax by different tax values and show diferent tax in td foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; $deptconvertedSplitTaxAmountWithName[$taxName] = $order->currency == 'USD' ? $tax->tax_value * $deptconvertedSplitTotalAmount / 100 : $tax->tax_value * $deptsplitAmount / 100; } $deptconvertedSplitSubTotalAmount = $order->currency == 'USD' ? $deptconvertedSplitTotalAmount + $deptconvertedSplitTaxAmount: $deptsplitSubTotal; // start month wise department total (when order not having splits but having split) // currency wise department if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['totalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['totalAmount'] = $deptsplitAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['totalAmount'] += $deptsplitAmount; foreach($deptsplitAllTaxOnlyName as $key => $tax) { if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['taxAmount'][$key])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['taxAmount'][$key] = $tax; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['taxAmount'][$key] += $tax; } if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['subTotalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['subTotalAmount'] = $deptsplitSubTotal; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept'][$order->currency]['subTotalAmount'] += $deptsplitSubTotal; // aggregate currency wise total (department wise) if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['totalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['totalAmount'] = $deptconvertedSplitTotalAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['totalAmount'] += $deptconvertedSplitTotalAmount; foreach($deptsplitAllTaxOnlyName as $key => $tax) { if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['taxAmount'][$key])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['taxAmount'][$key] = $deptconvertedSplitTaxAmountWithName[$key]; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['taxAmount'][$key] += $deptconvertedSplitTaxAmountWithName[$key]; } if(!isset($splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['subTotalAmount'])) $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['subTotalAmount'] = $deptconvertedSplitSubTotalAmount; else $splitData[$order->tax_date_year][$order->tax_date_month_no][$department->id]['dept']['allCurrency']['subTotalAmount'] += $deptconvertedSplitSubTotalAmount; // end month wise department total (when order not having splits but having split) // start month wise department total // aggregate currency wise dapartment total (monthly) if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'] = $deptconvertedSplitTotalAmount; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['totalAmount'] += $deptconvertedSplitTotalAmount; foreach($deptsplitAllTaxOnlyName as $key => $tax) { if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key] = $deptconvertedSplitTaxAmountWithName[$key]; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['taxAmount'][$key] += $deptconvertedSplitTaxAmountWithName[$key]; } if(!isset($deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'])) $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'] = $deptconvertedSplitSubTotalAmount; else $deptSplitData[$order->tax_date_year][$order->tax_date_month_no]['allSubDept'][$department->id]['subTotalAmount'] += $deptconvertedSplitSubTotalAmount; // start month wise department total // start grand total calulation for departments (when order not having sub splits but having splits) // grand total currency wise total (department wise) if(!isset($grandTotalSplit[$department->id]['dept'][$order->currency]['totalAmount'])) $grandTotalSplit[$department->id]['dept'][$order->currency]['totalAmount'] = $deptsplitAmount; else $grandTotalSplit[$department->id]['dept'][$order->currency]['totalAmount'] += $deptsplitAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($grandTotalSplit[$department->id]['dept'][$order->currency]['taxAmount'][$taxName])) $grandTotalSplit[$department->id]['dept'][$order->currency]['taxAmount'][$taxName] = $deptsplitAllTaxOnlyName[$taxName]; else $grandTotalSplit[$department->id]['dept'][$order->currency]['taxAmount'][$taxName] += $deptsplitAllTaxOnlyName[$taxName]; } if(!isset($grandTotalSplit[$department->id]['dept'][$order->currency]['subTotalAmount'])) $grandTotalSplit[$department->id]['dept'][$order->currency]['subTotalAmount'] = $deptsplitSubTotal; else $grandTotalSplit[$department->id]['dept'][$order->currency]['subTotalAmount'] += $deptsplitSubTotal; // grand total aggregate currency wise total (department wise) if(!isset($grandTotalSplit[$department->id]['dept']['allCurrency']['totalAmount'])) $grandTotalSplit[$department->id]['dept']['allCurrency']['totalAmount'] = $deptconvertedSplitTotalAmount; else $grandTotalSplit[$department->id]['dept']['allCurrency']['totalAmount'] += $deptconvertedSplitTotalAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($grandTotalSplit[$department->id]['dept']['allCurrency']['taxAmount'][$taxName])) $grandTotalSplit[$department->id]['dept']['allCurrency']['taxAmount'][$taxName] = $deptconvertedSplitTaxAmountWithName[$taxName]; else $grandTotalSplit[$department->id]['dept']['allCurrency']['taxAmount'][$taxName] += $deptconvertedSplitTaxAmountWithName[$taxName]; } if(!isset($grandTotalSplit[$department->id]['dept']['allCurrency']['subTotalAmount'])) $grandTotalSplit[$department->id]['dept']['allCurrency']['subTotalAmount'] = $deptconvertedSplitSubTotalAmount; else $grandTotalSplit[$department->id]['dept']['allCurrency']['subTotalAmount'] += $deptconvertedSplitSubTotalAmount; // end grand total calulation for departments (when order not having sub splits but having splits) // start grand total of department (when department have value and that dept not having sub department) // grand total aggregate currency wise total (department wise) if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'])) $deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'] = $deptconvertedSplitTotalAmount; else $deptgrandTotalSplit['allSubDept'][$department->id]['totalAmount'] += $deptconvertedSplitTotalAmount; foreach($order->taxes as $tax) { $taxName = ($tax->tax_title == 'Withholding Tax') ? 'WHT' : $tax->tax_title; if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName])) $deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName] = $deptconvertedSplitTaxAmountWithName[$taxName]; else $deptgrandTotalSplit['allSubDept'][$department->id]['taxAmount'][$taxName] += $deptconvertedSplitTaxAmountWithName[$taxName]; } if(!isset($deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'])) $deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'] = $deptconvertedSplitSubTotalAmount; else $deptgrandTotalSplit['allSubDept'][$department->id]['subTotalAmount'] += $deptconvertedSplitSubTotalAmount; // end grand total of department @endphp @if($order->currency == $franchiseCurrency) |
ST: {{ number_format($deptsplitAmount,2) }} @foreach($deptsplitAllTax as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax,2) }} @endif @endforeachGT: {{ number_format($deptsplitSubTotal,2) }} |
@elseif($order->currency == 'USD') |
ST: {{ number_format($deptsplitAmount,2) }} @foreach($deptsplitAllTax as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax,2) }} @endif @endforeachGT: {{ number_format($deptsplitSubTotal,2) }} |
@endif
@else
@endif @endforeach @if($order->currency == $franchiseCurrency) |
ST: {{ number_format($totalAmount, 2) }} @isset($splitAllTaxTotal) @foreach($splitAllTaxTotal as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax, 2) }} @endif @endforeach @endissetGT: {{ number_format($subTotalAmount, 2) }} |
@else |
ST: {{ number_format($totalAmount, 2) }} @isset($splitAllTaxTotal) @foreach($splitAllTaxTotal as $key => $tax) @if($tax != 0){{ $key }}: {{ number_format($tax, 2) }} @endif @endforeach @endissetGT: {{ number_format($subTotalAmount, 2) }} |
@endif
{{ $order->owner->first_name }} {{ $order->owner->last_name }} | @permission('tax-invoice-read') session('panel'),'id' => $order->id]) }} title="View" class="btn btn-view" target="_blank"> remove_red_eye @endpermission @permission('send-finance-mail-write') @if($order->company) email @endif @endpermission @permission('tax-invoice-write') {{-- @if($order->status == 'pending') --}} edit {{-- @endif --}} @endpermission @permission('tax-invoice-write') @if($order->receipt && $order->receipt->company_document_link) file_present @else upload_file @endif @endpermission @permission('tax-invoice-read') @if($order->status == 'paid') receipt @endif @endpermission {{-- @permission('tax-invoice-delete') delete @endpermission --}} |