Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/../resources/views/./customer/billings
الملفات الموجودة في هذا الـ Path:
.
..
index.blade.php

مشاهدة ملف: index.blade.php

@extends('layouts.customer')

@section('title') Billings @endsection

@section('content')
    <!-- Content Header (Page header) -->
    <section class="content-header">

    </section>
    <!-- Main content -->
    <div class="content billing-section">
        <div class="container-fluid">
            <div class="row">
                <!-- /.col-md-6 -->
                <div class="col-lg-10 col-12 col-sm-12 col-md-10 mx-auto">
                    <div class="card">
                        <div class="card-header">
                            <h5 class="m-0">{{trans('customer.billing')}}</h5>
                        </div>
                        <div class="card-body">

                            <table class="w-100">
                                <tr>
                                    <td>
                                        <div class="card-title float-none">{{trans('customer.your_plan')}}</div>
                                        <h2>{{isset($customer_plan->plan)?$customer_plan->plan->title:''}}</h2></td>
                                    <td class="text-right">
                                        <button type="button"
                                                class="btn btn-primary d-none">{{trans('customer.update_plan')}}</button>
                                    </td>
                                </tr>
                            </table>
                            @if(isset($customer_plan->plan))
                                <table class="w-50">
                                    <tr>
                                        <td class="plan-des-title">{{trans('customer.email_limit')}}</td>
                                        <td class="plan-des-value">{{$customer_plan->email_limit - $customer_plan->available_emails}}
                                            /{{$customer_plan->email_limit}}</td>
                                    </tr>
                                    <tr>
                                        <td class="plan-des-title">{{trans('customer.contact_limit')}}</td>
                                        <td class="plan-des-value">{{$totalContacts}}
                                            /{{$customer_plan->contact_limit}}</td>
                                    </tr>
                                    <tr>
                                        <td class="plan-des-title">{{trans('customer.cost')}}</td>
                                        <td class="plan-des-value">{{formatNumberWithCurrSymbol($customer_plan->price)}}</td>
                                    </tr>
                                </table>
                            @endif

                            <div id="plans" class="plans-wrapper mt-3">
                                @foreach($plans as $plan)
                                    <div
                                        class="columns {{isset($customer_plan) && $customer_plan->plan_id==$plan->id?'plan-active':''}}">
                                        <ul class="price">
                                            <li class="grey">{{$plan->title}} <span
                                                    class="plan-title-current">{{isset($customer_plan) && $customer_plan->plan_id==$plan->id?'(Current)':''}}</span>
                                            </li>
                                            <li class="price-tag">{{formatNumberWithCurrSymbol($plan->price)}}</li>
                                            <li>{{$plan->email_limit}} {{trans('customer.email')}}</li>
                                            <li>{{$plan->contact_limit}} {{trans('customer.contact_limit')}}</li>
                                            <li>{{trans('customer.unlimited_support')}}</li>

                                            @if(!isset($customer_plan) || $customer_plan->plan_id!=$plan->id)
                                                <li>
                                                    @if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled())
                                                        <button
                                                            data-message="{!! trans('customer.messages.update_plan',['plan'=>$plan->title]) !!} <br/> <span class='text-sm text-muted'>{{trans('customer.messages.update_plan_nb')}}</span>"
                                                            data-action="{{route('paymentgateway::process')}}"
                                                            data-input='{"id":"{{$plan->id}}"}'
                                                            data-toggle="modal" data-target="#modal-confirm"
                                                            type="button"
                                                            class="btn btn-primary btn-sm">{{trans('customer.choose')}}
                                                        </button>
                                                    @else
                                                        <button
                                                            data-message="{!! trans('customer.messages.update_plan',['plan'=>$plan->title]) !!} <br/> <span class='text-sm text-muted'>{{trans('customer.messages.update_plan_nb')}}</span>"
                                                            data-action="{{route('customer.billing.update')}}"
                                                            data-input='{"id":"{{$plan->id}}"}'
                                                            data-toggle="modal" data-target="#modal-confirm"
                                                            type="button"
                                                            class="btn btn-primary btn-sm">{{trans('customer.choose')}}
                                                        </button>
                                                    @endif
                                                </li>
                                            @endif


                                        </ul>
                                    </div>
                                @endforeach
                            </div>

                        </div>
                    </div>
                </div>
                <!-- /.col-md-6 -->
            </div>
            <!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content -->
@endsection