@extends('layouts.back-end.app') @section('title', \App\CPU\translate('Seller List')) @push('css_or_js') @endpush @section('content')

{{\App\CPU\translate('seller_list')}} {{ $sellers->total() }}

@foreach($sellers as $key=>$seller) @endforeach
{{\App\CPU\translate('SL')}} {{\App\CPU\translate('shop_name')}} {{\App\CPU\translate('seller_name')}} {{\App\CPU\translate('contact_info')}} {{\App\CPU\translate('status')}} {{\App\CPU\translate('total_products')}} {{\App\CPU\translate('total_orders')}} {{\App\CPU\translate('action')}}
{{$sellers->firstItem()+$key}}
{{ \Str::limit($seller->shop->name, 20)}}
@if($seller->shop->temporary_close) {{ \App\CPU\translate('temporary_closed') }} @elseif($seller->shop->vacation_status && $current_date >= date('Y-m-d', strtotime($seller->shop->vacation_start_date)) && $current_date <= date('Y-m-d', strtotime($seller->shop->vacation_end_date))) {{ \App\CPU\translate('on_vacation') }} @endif
{{$seller->f_name}} {{$seller->l_name}} {{$seller->phone}} {!! $seller->status=='approved'?'':'' !!} {{$seller->product->count()}} {{$seller->orders->where('seller_is','seller')->where('order_type','default_type')->count()}}
{!! $sellers->links() !!}
@if(count($sellers)==0)
Image Description

{{\App\CPU\translate('No data to show')}}

@endif
@endsection @push('script') @endpush