Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/user/pages/sellerDashboard.blade.php
<div class='col-lg-8 seller_custom_dashboard'>
    <div class='row'>
        <div class="col-lg-6 col-sm-6">
               <div class='card pe-4 bg-white'>
                   <div class='card-body'>
                       <h3>{{ \App\Models\Thread::where('receiver_id', Auth::guard('web')->user()->id)->count() }}</h3>
                       <p>Total Inquiries</p>
                      <hr/>
                   </div>
               </div>
        </div>
        <div class="col-lg-6 col-sm-6">
               <div class='card pe-4 bg-white'>
                   <div class='card-body'>
                       <h3>{{ \App\Models\Product::where('supplier_id', Auth::guard('web')->user()->id)->count() }}</h3>
                       <p>Products</p>
                      <hr/>
                   </div>
               </div>
        </div>
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <div class="h4 card-title">About</div>
                    <div class="table-responsive">
                        <table class="table table-striped mb-0 table">
                        <tbody>
                            <tr>
                                <td>Member Id</td>
                                <td>TV{{Auth::guard('web')->user()->id}}</td>
                            </tr>
                            <tr>
                                <td>Name</td>
                                <td>{{Auth::guard('web')->user()->name}}</td>
                            </tr>
                            <tr>
                                <td>Email</td>
                                <td>{{Auth::guard('web')->user()->email}}</td>
                            </tr>
                            <tr>
                                <td>Contact Number</td>
                                <td>{{Auth::guard('web')->user()->company->phone}}</td>
                            </tr>
                            <tr>
                                <td>Package</td>
                                <td><img src='{{asset('storage/images/admin/package/'.Auth::guard('web')->user()->package->image)}}' alt='img' height='40' /></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <div class="h4 card-title two-text-justiry-between"><span>Basic Information</span> <a href='{{ route('user.profile.view') }}' class='btn btn-sm btn-primary'>Edit</a></div>
                    <div class="table-responsive">
                        <table class="table table-striped mb-0 table">
                        <tbody>
                            <tr>
                                <td>Member Id</td>
                                <td>TV{{Auth::guard('web')->user()->id}}</td>
                            </tr>
                            <tr>
                                <td>Company Name</td>
                                <td>{{Auth::guard('web')->user()->company->name}}</td>
                            </tr>
                            <tr>
                                <td>Business Type</td>
                                <td>{{Auth::guard('web')->user()->company->type}}</td>
                            </tr>
                            <tr>
                                <td>Main Markets</td>
                                <td>{{ Auth::guard('web')->user()->company->main_market }}</td>
                            </tr>
                            <tr>
                                <td>Main Products</td>
                                <td>
                                    @php
                                  $products = json_decode(Auth::guard('web')->user()->company->main_products, true);
                                       @endphp 
                                       @if(!empty($products))
                                    @foreach($products as  $product)
                                    <span class='badge bg-secondary'>{{ $product }}</span>
                                   @endforeach
                                   @endif
                                </td>
                            </tr>
                            <tr>
                                <td>Account Type</td>
                                <td>{{Auth::guard('web')->user()->type}}</td>
                            </tr>
                            <tr>
                                <td>Country</td>
                                <td>{{Auth::guard('web')->user()->country->name}}</td>
                            </tr>
                            <tr>
                                <td>Package Name </td>
                                <td>{{Auth::guard('web')->user()->package->name}}</td>
                            </tr>
                            <tr>
                                <td>Expiry Date</td>
                                <td>@if(Auth::guard('web')->user()->package->id != 0)
                                                                    {{ date('d F, Y', strtotime(Auth::guard('web')->user()->next_pay))}}
                                                                    @else
                                                                    Unlimted
                                                                    @endif</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <div class="h4 card-title two-text-justiry-between"><span>Contact Information</span> <a href='{{ route('user.profile.view') }}' class='btn btn-sm btn-primary'>Edit</a></div>
                    <div class="table-responsive">
                        <table class="table table-striped mb-0 table">
                        <tbody>
                            <tr>
                                <td>Full Name</td>
                                <td>{{Auth::guard('web')->user()->name}}</td>
                            </tr>
                            <tr>
                                <td>Email</td>
                                <td>{{Auth::guard('web')->user()->email}}</td>
                            </tr>
                            <tr>
                                <td>Phone Number</td>
                                <td>{{Auth::guard('web')->user()->company->phone}}</td>
                            </tr>
                            <tr>
                                <td>Mobile Number</td>
                                <td>-</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    </div>
</div>
<div class='col-lg-4'>
    <div class='row'>
        <div class="col-lg-12 col-sm-12">
            <div class="card">
                <div class="card-body">
                    <h4 class="card-title">Posting Status</h4>
                    <div class="">
                        <h6 class="  {{ 100 - $user_profile_complete < 50 ?  'p_title':' '}}" style="margin-top:23px; ">Your Profile is {{ 100 - $user_profile_complete }}% Completed</h6>
                        <div class="progress progress-xl">
                            <div class="progress-bar progress-bar-striped progress-bar-animated {{ 100 - $user_profile_complete < 50 ?  'bg-danger':' '}} " role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: {{ 100 - $user_profile_complete }}%"></div>
                        </div>
                    </div>
                    <div class="row mt-4">
                        <div class="col-4">
                            <h6 class="text-black">Company</h6>
                        </div>
                        <div class="col-8">
                            <div class="progress progress-xl">
                                <div class="progress-bar progress-bar-striped progress-bar-animated {{ 100 - $user_profile_complete_c < 50 ?  'bg-danger':' '}}" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: {{ 100 - $user_profile_complete_c }}%"></div>
                            </div>
                        </div>
                        
                    </div>
                    <div class="row mt-4">
                        <div class="col-4">
                            <h6 class="text-black">Products ({{ $auth_total_product}} /10 )</h6>
                        </div>
                        <div class="col-8">
                            <div class="progress progress-xl">
                                <div class="progress-bar progress-bar-striped progress-bar-animated {{ $auth_total_product*10 < 40 ?  'bg-danger':' '}}" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: {{ $auth_total_product * 10}}%"></div>
                            </div>
                        </div>
                    </div>
                    <div class="row mt-4">
                        <div class="col-4">
                            <h6 class="text-black">Buy Offers ({{ $auth_buy_offer}}/ 10)</h6>
                        </div>
                        <div class="col-8">
                            <div class="progress progress-xl">
                                <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: {{ $auth_buy_offer/10 }}%"></div>
                            </div>
                        </div>
                    </div>
                    <!--<div class="row mt-4">-->
                    <!--    <div class="col-4">-->
                    <!--        <h6 class="text-black">Trade Alerts (X)</h6>-->
                    <!--    </div>-->
                    <!--    <div class="col-8">-->
                    <!--        <div class="progress progress-xl">-->
                    <!--            <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>-->
                    <!--        </div>-->
                    <!--    </div>-->
                    <!--</div>-->
                    
                </div>
            </div>
        </div>
    </div>
        <div class='row'>
        <div class="noticecol-lg-12 col-sm-12">
            <div class="card">
                <div class="card-header">
                     <h3><span>Notice</span> Board</h3>
                </div>
                <div class="card-body">
                    <div class="main-blog">
                <div class="blog">
                    <h5>For Buyers</h5>
                    <ul>
                        <li> How can I search for products on eworldtrade.com?</li>
                        <li> What should I do if I can't find suitable products?</li>
                        <li>How can I post a Buying Request to get accurate quotes?</li>
                        <li>How can I contact suppliers?</li>
                        <li>Can eWorld Trade recommend specific products to me?</li>
                        
                    </ul>
                </div>
                <div class="blog">
                    <h5>For Suppliers</h5>
                    <ul>
                        <li> Updating your Company Profile</li>
                        <li> Listing &amp; Managing Your Products</li>
                        <li> In addition to waiting for the buyer to send me an inquiry, where can I take the initiative to find buyers?</li>
                        <li>  How many products I can post?</li>
                        <li> What benefits I will get as a premium member?</li>
                        <li> Exploring Buy Offers</li>

                        
                    </ul>
                    
                </div>
            </div>
                </div>
            </div>
        </div>
    </div>
    
    
</div>