checkout.blade.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. @extends('layouts.main')
  2. @section('content')
  3. <!-- CONTENT HEADER -->
  4. <section class="content-header">
  5. <div class="container-fluid">
  6. <div class="row mb-2">
  7. <div class="col-sm-6">
  8. <h1>Store</h1>
  9. </div>
  10. <div class="col-sm-6">
  11. <ol class="breadcrumb float-sm-right">
  12. <li class="breadcrumb-item"><a class="" href="{{ route('home') }}">Dashboard</a></li>
  13. <li class="breadcrumb-item"><a class="text-muted" href="{{ route('store.index') }}">Store</a>
  14. </li>
  15. </ol>
  16. </div>
  17. </div>
  18. </div>
  19. </section>
  20. <!-- END CONTENT HEADER -->
  21. <!-- MAIN CONTENT -->
  22. <section class="content">
  23. <div class="container-fluid">
  24. <div class="row">
  25. <div class="col-12">
  26. <!-- Main content -->
  27. <div class="invoice p-3 mb-3">
  28. <!-- title row -->
  29. <div class="row">
  30. <div class="col-12">
  31. <h4>
  32. <i class="fas fa-globe"></i> {{ config('app.name', 'Laravel') }}
  33. <small class="float-right">Date:
  34. {{ Carbon\Carbon::now()->isoFormat('LL') }}</small>
  35. </h4>
  36. </div>
  37. <!-- /.col -->
  38. </div>
  39. <!-- info row -->
  40. <div class="row invoice-info">
  41. <div class="col-sm-4 invoice-col">
  42. To
  43. <address>
  44. <strong>{{ config('app.name', 'Controlpanel.GG') }}</strong><br>
  45. Email: {{ env('PAYPAL_EMAIL', env('MAIL_FROM_NAME')) }}
  46. </address>
  47. </div>
  48. <!-- /.col -->
  49. <div class="col-sm-4 invoice-col">
  50. From
  51. <address>
  52. <strong>{{ Auth::user()->name }}</strong><br>
  53. Email: {{ Auth::user()->email }}
  54. </address>
  55. </div>
  56. <!-- /.col -->
  57. <div class="col-sm-4 invoice-col">
  58. <b>Status</b><br>
  59. <span class="badge badge-warning">Pending</span><br>
  60. {{-- <b>Order ID:</b> 4F3S8J<br> --}}
  61. </div>
  62. <!-- /.col -->
  63. </div>
  64. <!-- /.row -->
  65. <!-- Table row -->
  66. <div class="row">
  67. <div class="col-12 table-responsive">
  68. <table class="table table-striped">
  69. <thead>
  70. <tr>
  71. <th>Quantity</th>
  72. <th>Product</th>
  73. <th>Description</th>
  74. <th>Subtotal</th>
  75. </tr>
  76. </thead>
  77. <tbody>
  78. <tr>
  79. <td>1</td>
  80. <td><i class="fa fa-coins mr-2"></i>{{ $product->quantity }}
  81. {{ strtolower($product->type) == 'credits' ? CREDITS_DISPLAY_NAME : $product->type }}
  82. </td>
  83. <td>{{ $product->description }}</td>
  84. <td>{{ $product->formatToCurrency($product->price) }}</td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. </div>
  89. <!-- /.col -->
  90. </div>
  91. <!-- /.row -->
  92. <div class="row">
  93. <!-- accepted payments column -->
  94. <div class="col-6">
  95. <p class="lead">Payment Methods:</p>
  96. <img src="https://www.paypalobjects.com/digitalassets/c/website/logo/full-text/pp_fc_hl.svg"
  97. alt="Paypal">
  98. <p class="text-muted well well-sm shadow-none" style="margin-top: 10px;">
  99. By purchasing this product you agree and accept our terms of service</a>
  100. </p>
  101. </div>
  102. <!-- /.col -->
  103. <div class="col-6">
  104. <p class="lead">Amount Due {{ Carbon\Carbon::now()->isoFormat('LL') }}</p>
  105. <div class="table-responsive">
  106. <table class="table">
  107. <tr>
  108. <th style="width:50%">Subtotal:</th>
  109. <td>{{ $product->formatToCurrency($product->price) }}</td>
  110. </tr>
  111. <tr>
  112. <th>Tax ({{ $taxpercent }}%)</th>
  113. <td>{{ $product->formatToCurrency($taxvalue) }}</td>
  114. </tr>
  115. <tr>
  116. <th>Quantity:</th>
  117. <td>1</td>
  118. </tr>
  119. <tr>
  120. <th>Total:</th>
  121. <td>{{ $product->formatToCurrency($total) }}</td>
  122. </tr>
  123. </table>
  124. </div>
  125. </div>
  126. <!-- /.col -->
  127. </div>
  128. <!-- /.row -->
  129. <!-- this row will not appear when printing -->
  130. <div class="row no-print">
  131. <div class="col-12">
  132. <a href="{{ route('payment.PaypalPay', $product->id) }}" type="button"
  133. class="btn btn-success float-right"><i class="far fa-credit-card mr-2"></i> Submit
  134. PayPal
  135. Payment
  136. </a>
  137. <a href="{{ route('payment.StripePay', $product->id) }}" type="button"
  138. class="btn btn-success float-right"><i class="far fa-credit-card mr-2"></i> Submit
  139. Stripe
  140. Payment
  141. </a>
  142. </div>
  143. </div>
  144. </div>
  145. <!-- /.invoice -->
  146. </div><!-- /.col -->
  147. </div><!-- /.row -->
  148. </div>
  149. </section>
  150. <!-- END CONTENT -->
  151. @endsection