@extends('backend.layouts.app') @section('content')
# | {{ translate('Referred By')}} | {{ translate('Referral User')}} | {{ translate('Amount')}} | {{ translate('Order Id')}} | {{ translate('Referral Type') }} | {{ translate('Product') }} | {{ translate('Date') }} |
---|---|---|---|---|---|---|---|
{{ ($key+1) + ($affiliate_logs->currentPage() - 1)*$affiliate_logs->perPage() }} | {{ optional(\App\Models\User::where('id', $affiliate_log->referred_by_user)->first())->name }} | @if($affiliate_log->user_id !== null) {{ optional($affiliate_log->user)->name }} @else {{ translate('Guest').' ('. $affiliate_log->guest_id.')' }} @endif | {{ single_price($affiliate_log->amount) }} | @if($affiliate_log->order_id != null) {{ optional($affiliate_log->order)->code }} @else {{ optional($affiliate_log->order_detail->order)->code }} @endif | {{ ucwords(str_replace('_',' ', $affiliate_log->affiliate_type)) }} | @if($affiliate_log->order_detail_id != null && $affiliate_log->order_detail) {{ optional($affiliate_log->order_detail->product)->name }} @endif | {{ $affiliate_log->created_at->format('d, F Y') }} |