@extends('layouts.manage') @section('title')@lang('Vendor Dashboard') - {{config('app.name')}}@endsection @section('styles') @endsection @section('page-header-title') @lang('Vendor Dashboard') @endsection @section('page-header-description') @lang('View your earnings and payouts') @endsection @section('content')

{{$vendor->name}}

@lang('Shop Name:') {{$vendor->phone}}
@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->links()}}

@lang('Overall Summary')

@endsection