@extends('admin.layout') @section('content') @php $this->seller_id = $Seller->id; $orders_count = \App\Order::join('order_products', function ($join) { $join->on('orders.id', '=', 'order_products.order_id')->where('order_products.seller_id', $this->seller_id); })->count('orders.id'); $refunds_count = \App\RefundRequest::where('seller_id', $this->seller_id)->count(); $withdrawRequest_count = \App\SellerWithdrawRequest::where('viewed', 0) ->where('seller_id', $this->seller_id) ->count(); @endphp

{{ translate('Sellers') }}

@if (Session::get('tenant_subscribtion_data')['sellers']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['sellers'] == 1)
@include('admin.Seller.nav', ['seller_id' => $Seller->id , 'active' => 'profile'])
{{ translate('Pending balance') }}
{{ single_price(\App\Seller::find($Seller->id)->admin_to_pay) }} {{ currency_sympol()['symbol'] }}
{{ translate('Total') }} {{ translate('Products') }}
{{ \App\Product::where('user_id', \App\Seller::find($Seller->id)->user_id)->count() }}
{{ translate('Total') }} {{ translate('Orders') }}
{{ $orders_count }}
{{ translate('Total') }} {{ translate('Refunds') }}
{{ $refunds_count }}
{{ translate('Name') }} {{ $Seller->user->name }}
{{ translate('Email') }} {{ $Seller->user->email }}
{{ translate('Company name') }} {{ $Seller->company_name }}
{{ translate('Company phone') }} {{ $Seller->company_phone }}
{{ translate('Company adress') }} {{ $Seller->company_adress }}
{{ translate('Tax number') }} {{ $Seller->tax_number }}
{{ translate('Tax attach file') }} @if (strpos($Seller->tax_attach_file, 'pdf') !== false) your image @else @endif
{{ translate('Bank name') }} {{ $Seller->bank_name }}
{{ translate('Bank account number') }} {{ $Seller->bank_account_num }}
{{ translate('Bank user name') }} {{ $Seller->bank_user_name }}
{{ translate('Bank swift code') }} {{ $Seller->bank_swift_code }}
{{ translate('Bank branch name') }} {{ $Seller->bank_branch_name }}
{{ translate('Bank attach file') }} @if (strpos($Seller->bank_attach_file, 'pdf') !== false) your image @else @endif
{{ translate('Categories') }}
{!! Form::open(['method' => 'post', 'action' => 'Admin\SellerController@syncCategories', 'files' => true]) !!}
{!! Form::select('categories[]', $categories, $Sellercategories, ['style' => 'width:100%;', 'class' => 'form-control select2', 'multiple']) !!}
{!! Form::submit(translate('Save'), ['class' => 'btn btn-primary form-control']) !!}
{!! Form::Close() !!}
{{ translate('Attachment') }}

@forelse ($Seller->sellerUpload as $key => $up_file)
@if (strpos($up_file->file_path, 'pdf') !== false) your image @else @endif
@empty @endforelse
@else

{{ translate('You need to upgrade to use this feature.') }}

{{ translate('Please Upgrade to use this feature.') }}


{{ translate('Upgrade now') }}
@endif
@endsection @section('script') @endsection