@extends('backend.partials.master') @section('title') {{ ___('vendor.Statement') }} @endsection @section('maincontent')
CSV

{{ $vendor->company_name }}

{{ $from->format('d M Y') }} — {{ $to->format('d M Y') }}

@if($totals['vat'] > 0)@endif
{{ ___('vendor.Gross sales') }}{{ currency_symbol() }}{{ number_format($totals['gross'], 2) }}
{{ ___('vendor.Refunded') }}−{{ currency_symbol() }}{{ number_format($totals['refunded'], 2) }}
{{ ___('vendor.Commission kept by the agency') }}−{{ currency_symbol() }}{{ number_format($totals['commission'], 2) }}
{{ ___('vendor.VAT on commission') }}−{{ currency_symbol() }}{{ number_format($totals['vat'], 2) }}
{{ ___('vendor.Net earned') }}{{ currency_symbol() }}{{ number_format($totals['net'], 2) }}
{{ ___('vendor.Balance adjustments') }}{{ currency_symbol() }}{{ number_format($totals['adjustments'], 2) }}
{{ ___('vendor.Payouts') }}−{{ currency_symbol() }}{{ number_format($totals['payouts'], 2) }}
{{ ___('vendor.of which tax withheld') }}{{ currency_symbol() }}{{ number_format($totals['tds'], 2) }}
{{ ___('vendor.Balance owed to you now') }}{{ currency_symbol() }}{{ number_format($closing['ledger'], 2) }}
{{ ___('vendor.Withdrawable now') }}{{ currency_symbol() }}{{ number_format($closing['available'], 2) }}
@forelse($earnings as $e) @empty@endforelse
{{ ___('vendor.Date') }}{{ ___('vendor.Sale') }}{{ ___('vendor.Gross') }}{{ ___('vendor.Refunded') }}{{ ___('vendor.Commission') }}{{ ___('vendor.Net') }}{{ ___('vendor.Status') }}
{{ $e->created_at->format('d M Y') }}{{ $e->description }}{{ number_format($e->gross, 2) }}{{ number_format($e->refunded, 2) }}{{ number_format($e->commission, 2) }}{{ number_format($e->net, 2) }}{{ ___('vendor.'.$e->status) }}
{{ ___('vendor.No earnings yet.') }}
@endsection