@extends('backend.partials.master') @section('title') {{ ___('vendor.Settlement report') }} @endsection @section('maincontent')
CSV
{{ ___('vendor.Commission earned by the agency') }}

{{ currency_symbol() }}{{ number_format($totals['commission'], 2) }}

{{ ___('vendor.Owed to vendors') }}

{{ currency_symbol() }}{{ number_format($totals['owed'], 2) }}

{{ ___('vendor.Paid out') }}

{{ currency_symbol() }}{{ number_format($totals['paid'], 2) }}

{{ ___('vendor.VAT on commission') }}

{{ currency_symbol() }}{{ number_format($totals['vat'], 2) }}

{{ ___('vendor.Tax withheld') }}

{{ currency_symbol() }}{{ number_format($totals['tds'], 2) }}

@forelse($rows as $r) @empty@endforelse @if($rows->isNotEmpty())@endif
{{ ___('vendor.Vendor') }}{{ ___('vendor.Sales') }}{{ ___('vendor.Gross') }}{{ ___('vendor.Refunded') }}{{ ___('vendor.Commission') }}{{ ___('vendor.Vendor net') }}{{ ___('vendor.Paid out') }}{{ ___('vendor.Held') }}{{ ___('vendor.Balance owed') }}{{ ___('vendor.Withdrawable now') }}
{{ $r['vendor']->company_name }}{{ $r['sales'] }}{{ number_format($r['gross'], 2) }}{{ number_format($r['refunded'], 2) }}{{ number_format($r['commission'], 2) }}{{ number_format($r['net'], 2) }}{{ number_format($r['paid'], 2) }}{{ number_format($r['held'], 2) }}{{ number_format($r['owed'], 2) }}{{ number_format($r['available'], 2) }}
{{ ___('vendor.None yet.') }}
{{ ___('vendor.Total') }}{{ $totals['sales'] }}{{ number_format($totals['gross'], 2) }}{{ number_format($totals['refunded'], 2) }}{{ number_format($totals['commission'], 2) }}{{ number_format($totals['net'], 2) }}{{ number_format($totals['paid'], 2) }}{{ number_format($totals['held'], 2) }}{{ number_format($totals['owed'], 2) }}{{ number_format($totals['available'], 2) }}
@endsection