@extends('layouts.manage') @section('title')@lang('Vendor') - {{config('app.name')}}@endsection @section('page-header-title') @lang('View Vendor') @if (Auth::user()->can('read', App\Vendor::class)) @lang('View All') @endif @endsection @section('page-header-description') @lang("View Vendor's earnings and payouts") @endsection @section('styles') @endsection @section('scripts') @if(config('settings.toast_notifications_enable')) @endif @endsection @section('content')
@if(session()->has('payment_success')) @endif @if(session()->has('payment_error')) @endif

{{$vendor->name}}

@lang('Shop URL:') {{url('/shop')}}/{{$vendor->slug}}
@lang('Phone:') {{$vendor->phone}}
@lang('Address:') {{$vendor->address}}
@lang('City:') {{$vendor->city}}
@lang('State:') {{$vendor->state}}
{!!$vendor->description!!}

@lang('Vendor Earnings')

@if(count($vendor_amounts)) @foreach($vendor_amounts as $vendor_amount) @endforeach @endif
@lang('Product') @lang('Quantity') @lang('Total Price') @lang('Vendor Amount') @lang('Status') @lang('Date')
{{$vendor_amount->product_name}} {{ucwords($vendor_amount->product_quantity)}} {{ucwords($vendor_amount->total_price)}} {{ucwords($vendor_amount->vendor_amount)}} {{ucwords($vendor_amount->status)}} @if($vendor_amount->status == 'outstanding') {{$vendor_amount->outstanding_date->format('d-m-Y h:i A')}} @elseif($vendor_amount->status == 'earned') {{$vendor_amount->earned_date->format('d-m-Y h:i A')}} @elseif($vendor_amount->status == 'paid') {{$vendor_amount->payment_date->format('d-m-Y h:i A')}} @elseif($vendor_amount->status == 'cancelled') {{$vendor_amount->cancel_date->format('d-m-Y h:i A')}} @endif
{{$vendor_amounts->appends(request()->input())->links()}}

@if($date_filter)

@lang('Results filtered for:') {{Carbon\Carbon::parse($date_filter)->format('F Y')}}
@lang('Clear Filter')
@endif

@lang('Overall Summary')

  • @lang('Outstanding Amount:') {{currency_format($outstanding_amount)}}
  • @lang('Amount Earned:') {{currency_format($amount_earned)}}
  • @lang('Amount Paid:') {{currency_format($amount_paid)}}
  • @if($amount_earned > 0)
  • @lang('Amount Payable:') {{currency_format($amount_earned)}}

    @if(count($amount_earned_ids))
    {{csrf_field()}} @if($date_filter) @endif @if(isset($payment_paypal['enable']) && $payment_paypal['enable'] && !empty($payment_paypal['email']))


    @endif
    @endif
  • @endif
@if($amount_earned > 0)
@include('includes.form_errors')

@lang('Update Payment Status')

@lang('This will mark the payment status of') @lang('Amount Payable:') {{currency_format($amount_earned)}} @lang('as') @lang('"Paid"').
{{csrf_field()}}



@endif

@lang('Last Payouts')

@if(count($vendor_payments)) @foreach($vendor_payments as $vendor_payment) @endforeach @endif
@lang('Transaction ID') @lang('Amount') @lang('Payment Method') @lang('Date')
{{$vendor_payment->payment_id}} {{currency_format($vendor_payment->amount, $vendor_payment->currency)}} {{$vendor_payment->payment_method}} {{$vendor_payment->created_at->format('d-m-Y h:i A')}}
{{$vendor_payments->appends(request()->input())->links()}}
@endsection