@extends("front.layout.master") @php $user = Auth::user(); $sellerac = App\Store::where('user_id','=', $user->id)->first(); require_once(base_path().'/app/Http/Controllers/price.php'); @endphp @section('title',__('staticwords.AffiliateDB').' | ') @section("body")
@include('user.sidebar')
{{ __("staticwords.howitworks") }}

{{ __('staticwords.AffiliateDB') }}


{{__("staticwords.referHeading")}}

{{__("staticwords.referdesc")}}

{{ __("staticwords.CopyLink") }}
@if($aff_history->count())

{{ __('Total earning') }} {{ $earning }} @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id']) ( {{ sprintf("%.2f",currency($earning, $from = $defCurrency->currency->code, $to = session()->get('currency')['id'] , $format = false)) }}) @endif

{{ __('staticwords.affhistory') }}


@foreach($aff_history as $history)
{{ __('+') }} {{ sprintf("%.2f",$history->amount,2) }} @if(isset($user->wallet) && $defCurrency->currency->code != session()->get('currency')['id'])
( {{ sprintf("%.2f",currency($history->amount, $from = $defCurrency->currency->code, $to = session()->get('currency')['id'] , $format = false)) }})
@endif
{{ $history->log }}
@if($history->procces == 0)

{{ __("staticwords.Pending") }}

@else

{{ __("staticwords.creditedtowallet") }}

@endif

@endforeach @endif @if(isset($aff_history))
{!! $aff_history->links() !!}
@endif
@endsection @section('script') @endsection