Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/frontend/pages/package.blade.php
@extends('frontend.layouts.app')

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

   <section class="pvl-banner-leftnav company-index-banner" style=" background: url('{{asset('storage/pages/'.$pages->image)}}') no-repeat left top;">
    <div class="mx-auto w-75 text-center">
        <h1>{{ translate($pages->title) }}</h1>
        <span>{{ translate($pages->subtitle) }}</span>
    </div>
</section>

        <!--/************************** Premium Pricing Area Start ****************************/--->         

        <section class="premium-pricing join-free-packages">
            <div class="container">
                <div class="row">
                    <div class="col-12 text-center sec-heading d-none d-lg-block d-xl-block">
                        <h3>{{ translate('Our Premium') }} <span>{{ translate('Packages') }}</span></h3>
                        <h6>{{ translate('Premium Features and Ultimate Services') }}</h6>
                    </div>           
                    <div class="table-responsive-lg w-100 d-none d-lg-block d-xl-block">
                        <table cellpadding="0" cellspacing="0" width="100%" class="lite-table mt-3">
                            <tbody id="premiumPackageComponent">
                                <tr>
                                    <td  rowspan="2" class="td1 td3 height border-0 bg__none" width="276"></td>
                                </tr>
                                <tr>
                                    @foreach($packages as $pack)
                                        <td class="height2 elite-td">
                                            <a >
                                                <img src="{{asset('storage/images/admin/package/'.$pack['image'])}}" width="138"  alt="{{ $pack['details'] }}" class="lazy">
                                            </a>
                                        </td>
                                        
                                    @endforeach
                                </tr>
                                
                                
                                
                                @foreach(\App\Models\Feature::all() as $features)
                                @if($features->status != 'disable')
                                <tr>
                                    <td class="td3 packageComponentSubHeading">{{ translate($features->name) }}</td>
                                    @foreach($packages as $pack)
                                    @php
                                    $pre = \App\Models\PackageFeature::where('package_id', $pack->id)->where('feature_id', $features->id)->first();
                                    @endphp
                                     <td width="170">
                                    @if($pre != null)
                                    @if($pre->value == 1)
                                   
                                        <i class="fas fa-check text-success"></i>
                                   
                                    @elseif($pre->value == 0)
                                        <i class="fas fa-check text-success"></i>
                                    
                                    @else 
                                    
                                        {{ translate($pre->value) }}
                                   
                                    @endif
                                    @endif
                                    @if (!$pre)
                                    <i class="fas fa-times text-danger"></i>
                                    @endif
                                     </td>
                                    @endforeach
                                </tr>
                                @endif
                                @endforeach
                                
                                
                                 <tr class="price bold market">
                                <td class="td3">{{ translate('Download') }}</td>
                            @foreach($packages as $pack)
                                    <td>@if(!empty($pack['pdf'])) <a href="{{asset('storage/images/admin/package/pdf/'.$pack['pdf'])}}">{{ translate('Detail Brochure') }}</a> @endif </td>
                                    
                            @endforeach       
                            </tr>
                            
                            
                            
                                <tr class="price bold market">
                                <td class="td3">{{ translate('Discount') }}</td>
                            @foreach($packages as $pack)
                                    <td><span class="mony"><font class="india-pre"></font><font class="font18 premium-price">{{ round($pack->discount) }}%</font></span></td>
                            @endforeach       
                            </tr>
                                <tr class="price bold market">
                                <td class="td3">{{ translate('Annual Price') }}</td>
                            @foreach($packages as $pack)
                                    @php
                                        $discount_price = $pack->price /100*$pack->discount;
                                        $main_price = $pack->price - $discount_price;
                                        
                                    @endphp
                            
                            
                                    <td>
                                       
                                             @if($pack->discount != 0)
                                             <span class="mony"><font class="india-pre">Tk</font><font class="font18 premium-price"><del>  {{ $pack->price*settings()->bdt_rate }}</del></font></span>
                                             @endif
                                            <span class="mony"><font class="india-pre">Tk</font><font class="font18 premium-price">{{ $main_price * settings()->bdt_rate }}</font></span>
                                         
                                    </td>
                            @endforeach       
                            </tr>
                            
                            
                            <tr id="premiumPackageCallToAction">
                <td class="td3 border-0 bg__white"></td>
                
                
                                        @foreach($packages as $pack)
                                                <td>
                                                    <a href="{{ route('subscription.apply', $pack->slug) }}" title="{{ translate($pack->name) }}" class="lite-btn apply">{{ translate('Buy Now') }}</a>
                                                </td>
                                                
                                        @endforeach
                                    
                            </tr>
                                                </tbody>
                                            </table>
                                            
                                            
                                        </div>
                                        </div>
                                    </div>
                                    </div>
                                </div>
                                
                    </section>
                </div>
            </div>
        </section>
@endsection
@push('script')
    
@endpush