@extends('seller.layouts.app') @section('panel_content') @if(get_setting('vendor_commission_activation') == 1)
@if(get_setting('seller_commission_type') == 'fixed_rate')

{{ translate('You are Under Fixed Commission. Commission Rate') }} : {{ get_setting('vendor_commission') }} %

@elseif(get_setting('seller_commission_type') == 'seller_based')

{{ translate('You are Under Seller Based Commission. Commission Rate') }} : {{ \App\Models\Shop::where('user_id', auth()->user()->id)->first()->commission_percentage }} %

@elseif(get_setting('seller_commission_type') == 'category_based')

{{ translate('You are under Category Wise commission. See the commission details ') }} {{ translate('Here') }}

@endif
@endif
{{ translate('Commission History') }}
@foreach ($commission_history as $key => $history) @endforeach
# {{ translate('Order Code') }} {{ translate('Admin Commission') }} {{ translate('Earning') }} {{ translate('Created At') }}
{{ ($key+1) }} @if(isset($history->order)) {{ $history->order->code }} @else {{ translate('Order Deleted') }} @endif {{ $history->admin_commission }} {{ $history->seller_earning }} {{ $history->created_at }}
{{ $commission_history->links() }}
@endsection @section('script') @endsection