@extends('layouts.user') @section('content') @php $vendor_payout_methods = json_decode(setting_item('vendor_payout_methods')); if(!is_array($vendor_payout_methods)) $vendor_payout_methods = []; $payout_accounts = $currentUser->payout_accounts; @endphp

{{__("Vendor Payouts")}}

@include('admin.message')
@if(!empty($vendor_payout_methods))
@if(!empty($payout_accounts))
@include("Vendor::frontend.payouts.request")
@endif
@include("Vendor::frontend.payouts.setup")
@else
{{__("No payout methods available. Please contact administrator")}}
@endif @if(count($payouts))

{{__("Payout history")}}

@foreach($payouts as $payout) @endforeach
{{__("#")}} {{__("Amount")}} {{__("Payout Method")}} {{__("Date Request")}} {{__("Notes")}} {{__("Date Processed")}} {{__("Status")}}
#{{$payout->id}} {{format_money($payout->amount)}} {{__(':name to :info',['name'=>$payout->payout_method_name,'info'=>$payout->account_info])}} {{display_date($payout->created_at)}} @if($payout->note_to_admin)
{{$payout->note_to_admin}}
@endif @if($payout->note_to_vendor)
{{$payout->note_to_vendor}}
@endif
{{$payout->pay_date ? display_date($payout->pay_date) : ''}} {{$payout->status_text}}
{{$payouts->appends(request()->query())->links()}}
@endif
@endsection