@extends('backend.partials.master') @section('title') {{ ___('vendor.Vendor dashboard') }} @endsection @section('maincontent') @include('backend.portal.marketplace._status')
{{ ___('vendor.Total earned (net)') }}

{{ currency_symbol() }}{{ number_format($earned, 2) }}

{{ ___('vendor.Available to withdraw') }}

{{ currency_symbol() }}{{ number_format($available, 2) }}

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

{{ currency_symbol() }}{{ number_format($paidOut, 2) }}

{{ ___('vendor.Listings awaiting approval') }}

{{ $pending }}

@if($held > 0 || $available < 0)
{{ ___('vendor.Held (not yet withdrawable)') }}

{{ currency_symbol() }}{{ number_format($held, 2) }}

@if($available < 0){{ ___('vendor.Your balance is negative: a refund or adjustment came after you were paid. It is netted against your next sales.') }}@endif
@endif
@foreach($listings as $label => $n)
{{ ___('vendor.'.$label) }}

{{ $n }}

@endforeach

{{ ___('vendor.Recent earnings') }}

@forelse($recent as $e) @empty @endforelse
{{ ___('vendor.Sale') }}{{ ___('vendor.Gross') }}{{ ___('vendor.Commission') }}{{ ___('vendor.Net') }}{{ ___('vendor.Status') }}
{{ $e->description }}{{ currency_symbol() }}{{ number_format($e->gross, 2) }}{{ currency_symbol() }}{{ number_format($e->commission, 2) }} ({{ rtrim(rtrim($e->commission_rate, '0'), '.') }}%){{ currency_symbol() }}{{ number_format($e->net, 2) }}{{ ___('vendor.'.$e->status) }}
{{ ___('vendor.No sales yet.') }}
@endsection