Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/advertiser.blade.php
@extends('frontend.layouts.app')
@section('style')
<style>

h4{
    color:white !important;
}
.bg-info{
    background:#32a3e6 !important;
}
del{
    opacity:0.5;
}

</style>
@endsection

@section('content')
@php
        $my_ip = ip_country(visitorip())->country_code;
@endphp

     <section>
            <div class="container pt-5 text-capitalize">
                <div class="row">
                    <div class="col-lg-12 mb-4">
                        <div class="card">
                            <div class="card-body p-0">
                                <table class="table table-bordered text-center bg-colorp-0 m-0">
                                    <tr>
                                        <td>
                                           <a href="#home_section" class="btn box_shadow "> Home page</a>
                                        </td>
                                        <td>
                                           <a href="#buyer_section" class="btn  box_shadow "> Buyer page</a>
                                        </td>
                                        <td>
                                           <a href="#menufacture_section" class="btn  box_shadow "> Menufacture page</a>
                                        </td>
                                        <td>
                                           <a href="#product_section" class="btn  box_shadow "> Product page</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                           <a href="#company_section" class="btn  box_shadow "> Company page</a>
                                        </td>
                                        <td>
                                           <a href="#contact_section" class="btn box_shadow "> Contact page</a>
                                        </td>
                                        <td>
                                           <a href="#category_section" class="btn box_shadow "> Category page</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card" id="home_section">
                            <div class="card-header bg-info text-white">
                                <h4>Home Page</h4>
                            </div>
                            <div class="card-body">
                                 
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                 <form action="{{ route('advertiser.buy.preview', 'top_banner' ) }}" method="post">
                                  @csrf
                                   <input type="hidden" name="link" value="https://www.tradevaly.com.bd"/>
                                      <tr>
                                        <td>Top Banner</td>
                                        <td>570 x 443</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="top_banner" 
                                            data-price="{{ settings()->top_banner }}" data-after_price="{{ after_discount(settings()->top_banner,settings()->top_banner_discount) }}">
                                                <option  value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd">view Link</a></td>
                                        <td id="top_banner">
                                            
                                            <!--<span><del>$ {{ settings()->top_banner  }}</del>  ${{ after_discount(settings()->top_banner,settings()->top_banner_discount)  }}</span> -->
                                            <span> @if(settings()->top_banner_discount != 0) <del>Tk {{ settings()->top_banner * settings()->bdt_rate  }}</del> @endif Tk{{ after_discount(settings()->top_banner,settings()->top_banner_discount)* settings()->bdt_rate  }}</span>
                                         
                                            </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                      <form action="{{ route('advertiser.buy.preview', 'classic_banner' ) }}" method="post">
                                        @csrf
                                         <input type="hidden" name="link" value="https://www.tradevaly.com.bd/#featuredPointSectio"/>
                                      <tr>
                                        <td>Classic Banner</td>
                                        <td>255 x 126</td>
                                        <td>Max 5MB</td>
                                        <td> 
                                            <select  name="duration" id="" class="form-control duration_change" data-name="classic_banner" 
                                            data-price="{{ settings()->classic_banner }}" data-after_price="{{ after_discount(settings()->classic_banner,settings()->classic_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/#featuredPointSection">view Link</a></td>
                                        <td id="classic_banner">
                                            
                                            <!--<del>$ {{ settings()->classic_banner  }}</del>  ${{ after_discount(settings()->classic_banner,settings()->classic_banner_discount)  }} -->
                                            
                                            @if(settings()->top_banner_discount != 0) <del>Tk {{ settings()->classic_banner* settings()->bdt_rate  }}</del>@endif  Tk{{ after_discount(settings()->classic_banner,settings()->classic_banner_discount)* settings()->bdt_rate  }} 
                                           
                                            </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                      <form action="{{ route('advertiser.buy.preview', 'bottom_banner' ) }}" method="post">
                                         
                                  @csrf
                                   <input type="hidden" name="link" value="https://www.tradevaly.com.bd/#home_bottom_banner"/>
                                      <tr>
                                        <td>Bottom banner</td>
                                        <td>540 x 269</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select  name="duration" id="" class="form-control duration_change" data-name="bottom_banner" 
                                            data-price="{{ settings()->bottom_banner }}" data-after_price="{{ after_discount(settings()->bottom_banner,settings()->bottom_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/#home_bottom_banner ">view Link</a></td>
                                         <td id="bottom_banner">
                                             <!--<del>$ {{ settings()->bottom_banner  }}</del>  ${{ after_discount(settings()->bottom_banner,settings()->bottom_banner_discount)  }} -->
                                             
                                             @if(settings()->bottom_banner_discount != 0) <del>Tk {{ settings()->bottom_banner * settings()->bdt_rate  }}</del> @endif  Tk{{ after_discount(settings()->bottom_banner,settings()->bottom_banner_discount) * settings()->bdt_rate  }} 
                                             
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                    </tbody>
                                  </table>
                                
                            </div>
                        </div>
                    </div>
                     <div class="col-lg-12 mb-4">
                        <div class="card" id="category_section">
                            <div class="card-header bg-info text-white">
                                <h4>Industry Category Page </h4>
                            </div>
                            <div class="card-body">
                                
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Category</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                        <form action="{{ route('advertiser.buy.preview', 'category_banner' ) }}" method="post">
                                           @csrf
                                            <input type="hidden" name="link" value="https://www.tradevaly.com.bd/buyers"/>
                                        <tr>
                                        <td>Top Banner</td>
                                        <td>1920 X 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            @php
                                                $categories = \App\Models\Category::where('parent_id',0)->latest()->get();
                                            @endphp
                                            <select name="category_id" id="" class="form-control">
                                                @foreach($categories as $category)
                                                <option value="">Select a category</option>
                                                <option value="{{ $category->id }}">{{ $category->name }}</option>
                                                @endforeach
                                            </select>
                                        </td>
                                        <td>
                                            <select  name="duration" id="" class="form-control duration_change" data-name="top_category_banner" 
                                            data-price="{{ settings()->top_category_banner }}" data-after_price="{{ after_discount(settings()->top_category_banner,settings()->top_category_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="">view Link</a></td>
                                         <td id="top_category_banner">
                                             
                                             <!--<del>$ {{ settings()->top_category_banner  }}</del>  ${{ after_discount(settings()->top_category_banner,settings()->top_category_banner_discount)  }}-->
                                            
                                            @if(settings()->top_category_banner_discount != 0) <del>Tk {{ settings()->top_category_banner * settings()->bdt_rate  }}</del> @endif Tk{{ after_discount(settings()->top_category_banner,settings()->top_category_banner_discount) * settings()->bdt_rate  }}
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                      <form action="{{ route('advertiser.buy.preview', 'bottom_category_banner' ) }}" method="post">
                                    @csrf
                                     <input type="hidden" name="link" value="https://www.tradevaly.com.bd/buyers#page_bottom_banner"/>
                                      <tr>
                                        <td>Bottom Banner</td>
                                        <td>1920 X 332</td>
                                      <td>Max 5MB</td>
                                        <td>
                                            @php
                                                $categories = \App\Models\Category::where('parent_id',0)->latest()->get();
                                            @endphp
                                            <select name="category_id" id="" class="form-control">
                                                @foreach($categories as $category)
                                                <option value="">Select a category</option>
                                                <option value="{{ $category->id }}">{{ $category->name }}</option>
                                                @endforeach
                                            </select>
                                        </td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="bottom_category_banner" 
                                            data-price="{{ settings()->bottom_category_banner }}" data-after_price="{{ after_discount(settings()->bottom_category_banner,settings()->bottom_category_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a href="">view Link</a></td>
                                         <td id="bottom_category_banner">
                                             <!--<del>$ {{ settings()->bottom_category_banner  }}</del>  ${{ after_discount(settings()->bottom_category_banner,settings()->bottom_category_banner_discount)  }} -->
                                             
                                            @if(settings()->bottom_category_banner_discount != 0) <del>Tk {{ settings()->bottom_category_banner * settings()->bdt_rate  }}</del> @endif Tk{{ after_discount(settings()->bottom_category_banner,settings()->bottom_category_banner_discount) * settings()->bdt_rate  }} 
                                          
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                    </tbody>
                                  </table>
                                  </form>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card" id="buyer_section">
                            <div class="card-header bg-info text-white">
                                <h4>Buyers Page</h4>
                            </div>
                            <div class="card-body">
                               
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                         <form action="{{ route('advertiser.buy.preview', 'top_buyer_banner' ) }}" method="post">
                                            @csrf
                                             <input type="hidden" name="link" value="https://www.tradevaly.com.bd/buyers#page_bottom_banner"/>
                                      <tr>
                                        <td>Top Banner</td>
                                        
                                        <td>570 X 433</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select  name="duration" id="" class="form-control duration_change" data-name="top_buyer_banner" 
                                            data-price="{{ settings()->top_buyer_banner }}" data-after_price="{{ after_discount(settings()->top_buyer_banner,settings()->top_buyer_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/buyers">view Link</a></td>
                                         <td id="top_buyer_banner">
                                             
                                             <!--<del>$ {{ settings()->top_buyer_banner  }}</del>  ${{ after_discount(settings()->top_buyer_banner,settings()->top_buyer_banner_discount)  }}-->
                                            
                                            @if(settings()->top_buyer_banner_discount != 0) <del>Tk {{ settings()->top_buyer_banner * settings()->bdt_rate  }} </del> @endif  Tk{{ after_discount(settings()->top_buyer_banner,settings()->top_buyer_banner_discount) * settings()->bdt_rate  }}
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                         <form action="{{ route('advertiser.buy.preview', 'bottom_buyer_banner' ) }}" method="post">
                                            @csrf
                                            <input type="hidden" name="link" value="https://www.tradevaly.com.bd/buyers#page_bottom_banner"/>
                                      <tr>
                                        <td>Bottom Banner</td>
                                        
                                        <td>1920 X 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="bottom_buyer_banner" 
                                            data-price="{{ settings()->bottom_buyer_banner }}" data-after_price="{{ after_discount(settings()->bottom_buyer_banner,settings()->bottom_buyer_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/buyers#page_bottom_banner">view Link</a> </td>
                                         <td id="bottom_buyer_banner">
                                             
                                             <!--<del>$ {{ settings()->bottom_buyer_banner  }}</del>  ${{ after_discount(settings()->bottom_buyer_banner,settings()->bottom_buyer_banner_discount)  }} -->
                                             
                                           @if(settings()->bottom_buyer_banner_discount != 0) <del>Tk {{ settings()->bottom_buyer_banner * settings()->bdt_rate  }}</del> @endif Tk{{ after_discount(settings()->bottom_buyer_banner,settings()->bottom_buyer_banner_discount) * settings()->bdt_rate  }} 
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                </form>
                                    </tbody>
                                  </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card"  id="menufacture_section">
                            <div class="card-header bg-info text-white">
                                <h4>Companies Page</h4>
                            </div>
                            <div class="card-body">
                                
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                        <form action="{{ route('advertiser.buy.preview', 'top_company_banner' ) }}" method="post">
                                            @csrf
                                            <input type="hidden" name="link" value="https://www.tradevaly.com.bd/companies"/>
                                      <tr>
                                        <td>Top Banner</td>
                                        
                                        <td>1920 X 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="top_company_banner" 
                                            data-price="{{ settings()->top_company_banner }}" data-after_price="{{ after_discount(settings()->top_company_banner,settings()->top_company_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                        </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/companies">view Link</a> </td>
                                         <td id="top_company_banner">
                                             
                                             <!--<del>$ {{ settings()->top_company_banner  }}</del>  ${{ after_discount(settings()->top_company_banner,settings()->top_company_banner_discount)  }} -->
                                            
                                            @if(settings()->top_company_banner_discount != 0) <del>Tk {{ settings()->top_company_banner * settings()->bdt_rate }}</del>  @endif  Tk{{ after_discount(settings()->top_company_banner,settings()->top_company_banner_discount)  }} 
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                      <form action="{{ route('advertiser.buy.preview', 'bottom_company_banner' ) }}" method="post">
                                            @csrf
                                             <input type="hidden" name="link" value="https://www.tradevaly.com.bd/companies#page_bottom_banner"/>
                                      <tr>
                                        <td>Bottom Banner</td>
                                        
                                        <td>1920 X 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="bottom_company_banner" 
                                            data-price="{{ settings()->bottom_company_banner }}" data-after_price="{{ after_discount(settings()->bottom_company_banner,settings()->bottom_company_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                        </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/companies#page_bottom_banner">view Link</a></td>
                                         <td id="bottom_company_banner">
                                             
                                             <!--<del>$ {{ settings()->bottom_company_banner  }}</del>  ${{ after_discount(settings()->bottom_company_banner,settings()->bottom_company_banner_discount)  }}-->
                                           
                                            @if(settings()->bottom_company_banner_discount != 0) <del>Tk {{ settings()->bottom_company_banner * settings()->bdt_rate  }}</del> @endif  Tk{{ after_discount(settings()->bottom_company_banner,settings()->bottom_company_banner_discount) * settings()->bdt_rate }}
                                             
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                </form>
                                    </tbody>
                                  </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card" id="product_section">
                            <div class="card-header bg-info text-white">
                                <h4> Products Page </h4>
                            </div>
                            <div class="card-body">
                                
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                        <form action="{{ route('advertiser.buy.preview', 'top_product_banner' ) }}" method="post">
                                    @csrf
                                     <input type="hidden" name="link" value="https://www.tradevaly.com.bd/products"/>
                                      <tr>
                                        <td>Top Banner</td>
                                        
                                        <td>1920 x 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select  name="duration" id="" class="form-control duration_change" data-name="top_product_banner" 
                                            data-price="{{ settings()->top_product_banner }}" data-after_price="{{ after_discount(settings()->top_product_banner,settings()->top_product_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/products">view Link</a></td>
                                         <td id="top_product_banner">
                                             
                                             <!--<del>${{ settings()->top_product_banner  }}</del>  ${{ after_discount(settings()->top_product_banner,settings()->top_product_banner_discount)  }} -->
                                           
                                        @if(settings()->top_product_banner_discount != 0)  <del>Tk{{ settings()->top_product_banner * settings()->bdt_rate  }}</del> @endif  Tk{{ after_discount(settings()->top_product_banner,settings()->top_product_banner_discount) * settings()->bdt_rate  }} 
                                             
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                       <form action="{{ route('advertiser.buy.preview', 'bottom_product_banner' ) }}" method="post">
                                        @csrf
                                         <input type="hidden" name="link" value="https://www.tradevaly.com.bd/products#page_bottom_banner"/>
                                      <tr>
                                        <td>Bottom Banner</td>
                                        
                                        <td>1920 x 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="bottom_product_banner" 
                                            data-price="{{ settings()->bottom_product_banner }}" data-after_price="{{ after_discount(settings()->bottom_product_banner,settings()->bottom_product_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/products#page_bottom_banner">view Link</a></td>
                                         <td id="bottom_product_banner">
                                             
                                            @if(settings()->bottom_product_banner_discount != 0)  <del>Tk{{ settings()->bottom_product_banner * settings()->bdt_rate  }}</del> @endif Tk{{ after_discount(settings()->bottom_product_banner,settings()->bottom_product_banner_discount) * settings()->bdt_rate  }} 
                                          
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </form>
                                    </tbody>
                                  </table>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card" id="company_section">
                            <div class="card-header bg-info text-white">
                                <h4>Manufacturers Page</h4>
                            </div>
                            <div class="card-body">
                                
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                        <form action="{{ route('advertiser.buy.preview', 'top_manufacture_banner' ) }}" method="post">
                                        @csrf
                                         <input type="hidden" name="link" value="https://www.tradevaly.com.bd/manufacturers"/>
                                      <tr>
                                        <td>Top Banner</td>
                                        
                                        <td>570 X 433</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="top_manufacture_banner"  data-price="{{ settings()->top_manufacture_banner }}" data-after_price="{{ after_discount(settings()->top_manufacture_banner,settings()->top_manufacture_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a href="https://www.tradevaly.com.bd/manufacturers">view Link</a></td>
                                         <td id="top_manufacture_banner">
                                             
                                             <!--<del>$ {{ settings()->top_manufacture_banner  }}</del>  ${{ after_discount(settings()->top_manufacture_banner,settings()->top_manufacture_banner_discount)  }} -->
                                              
                                            @if(settings()->top_manufacture_banner_discount != 0) <del>Tk {{ settings()->top_manufacture_banner * settings()->bdt_rate  }}</del> @endif  Tk{{ after_discount(settings()->top_manufacture_banner,settings()->top_manufacture_banner_discount) * settings()->bdt_rate  }} 
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                      </from>
                                      <form action="{{ route('advertiser.buy.preview', 'bottom_manufacture_banner' ) }}" method="post">
                                        @csrf
                                         <input type="hidden" name="link" value="https://www.tradevaly.com.bd/manufacturers#page_bottom_banner"/>
                                      <tr>
                                        <td>Bottom Banner</td>
                                        
                                        <td>1920 x 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="bottom_manufacture_banner"
                                            data-price="{{ settings()->bottom_manufacture_banner }}" data-after_price="{{ after_discount(settings()->bottom_manufacture_banner,settings()->bottom_manufacture_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/manufacturers#page_bottom_banner">view Link</a></td>
                                         <td id="bottom_manufacture_banner">
                                             
                                             <!--<del>${{ settings()->bottom_manufacture_banner }}</del>  ${{ after_discount(settings()->bottom_manufacture_banner,settings()->bottom_manufacture_banner_discount) }}-->
                                            
                                            @if(settings()->bottom_manufacture_banner_discount != 0) <del>Tk {{ settings()->bottom_manufacture_banner  * settings()->bdt_rate }}</del> @endif Tk{{ after_discount(settings()->bottom_manufacture_banner,settings()->bottom_manufacture_banner_discount) * settings()->bdt_rate  }}
                                            
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                </form>
                                    </tbody>
                                  </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 mb-4">
                        <div class="card" id="contact_section">
                            <div class="card-header bg-info text-white">
                                <h4 >Contact Us Page</h4>
                            </div>
                            <div class="card-body">
                                <form action="{{ route('advertiser.buy.preview', 'contact_banner' ) }}" method="post">
                                @csrf
                                 <input type="hidden" name="link" value="https://www.tradevaly.com.bd/help"/>
                                <table class="table">
                                    <thead class=" ">
                                     <th>Placement</th>
                                     <th>Dymension</th>
                                     <th>Size</th>
                                     <th>Duration</th>
                                     <th>Banner Location</th>
                                     <th>Tariff In BDT</th>
                                     <th>action</th>
                                    </thead>
                                    <tbody>
                                      <tr>
                                        <td>Banner</td>
                                        
                                        <td>1920 x 332</td>
                                        <td>Max 5MB</td>
                                        <td>
                                            <select name="duration" id="" class="form-control duration_change" data-name="contact_banner"
                                            data-price="{{ settings()->contact_banner }}" data-after_price="{{ after_discount(settings()->contact_banner,settings()->contact_banner_discount) }}">
                                                <option value="1">1 Month</option>
                                                <option value="2">2 Months</option>
                                                <option value="3">3 Months</option>
                                                <option value="4">4 Months</option>
                                                <option value="5">5 Months</option>
                                                <option value="6">6 Months</option>
                                                <option value="7">7 Months</option>
                                                <option value="8">8 Months</option>
                                                <option value="9">9 Months</option>
                                                <option value="10">10 Months</option>
                                                <option value="11">11 Months</option>
                                                <option value="12">1 Year</option>
                                            </select>
                                        </td>
                                        <td><a target="_blank" href="https://www.tradevaly.com.bd/help">view Link</a></td>
                                         <td id="contact_banner">
                                             
                                             <!--<del>$ {{ settings()->contact_banner  }}</del>  ${{ after_discount(settings()->contact_banner,settings()->contact_banner_discount)  }}-->
                                            
                                           @if(settings()->contact_banner_discount != 0)  <del>Tk {{ settings()->contact_banner * settings()->bdt_rate  }}</del> @endif  Tk{{ after_discount(settings()->contact_banner,settings()->contact_banner_discount) * settings()->bdt_rate  }}
                                             
                                             </td>
                                        <td><button type="submit" class="btn bg-info text-white btn-sm ">Buy Now</button></td>
                                      </tr>
                                    </tbody>
                                  </table>
                                </form>
                            </div>
                        </div>
                    </div>
                   
                </div>
            </div>
        </section>
        <span style="opacity:0;" id="bdt_rate" data-bdt_rate="{{ settings()->bdt_rate }}"></span>
@stop

@section('script')
<script type="text/javascript">
   
    $(document).ready(function() {
         $('.duration_change').change(function(){
        let banner_name = $(this).data('name');
        let afterPrice = $(this).data('after_price');
        let banner_price = $(this).data('price');
        let duration = $(this).val();
       let className =  document.getElementById(banner_name);
        afterPrice = afterPrice*duration
        banner_price = banner_price*duration
        
        let bdt_rate = $('#bdt_rate').data('bdt_rate');
        bdt_afterPrice = afterPrice*bdt_rate
        bdt_banner_price = banner_price*bdt_rate
        
        // import value in html
        className.innerHTML = `@if(settings()->top_banner_discount != 0)<del>Tk ${bdt_afterPrice} </del> @endif Tk ${bdt_banner_price}  `;
    })
       
    });
</script>

@stop