Skip to content

Commit

Permalink
view frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkHorseCorder committed Dec 29, 2022
1 parent effe37c commit 9911273
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
29 changes: 29 additions & 0 deletions project/resources/views/frontend/sections/service.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<section class="crypto-section pt-100 pb-50">
<div class="container">
<div class="section-header">
<h6 class="section-header__subtitle">@lang(@$section->content->title)</h6>
<h3 class="section-header__title">@lang(@$section->content->heading)</h3>
</div>
@if (!empty($section->sub_content))
<div class="row g-4 justify-content-center">
@foreach ($section->sub_content as $item)
<div class="col-lg-4 col-sm-6">
<div class="crp__item">
<a href="#0" class="crp--link">&nbsp;</a>
<div class="crp__item-icon">
<i class="{{@$item->icon}}"></i>
</div>
<div class="crp__item-cont">
<h5 class="crp__item-cont-title">@lang(@$item->title)</h5>
<p>
@lang(@$item->details)
</p>
</div>
</div>
</div>
@endforeach
</div>
@endif

</div>
</section>
13 changes: 13 additions & 0 deletions project/resources/views/frontend/sections/sponsor.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@if (!empty($section->sub_content))
<section class="partner-section pb-100 bg--section">
<div class="container">
<div class="partner-slider owl-theme owl-carousel">
@foreach ($section->sub_content as $item)
<div class="partner-item border">
<img src="{{getPhoto($item->image)}}" alt="brand">
</div>
@endforeach
</div>
</div>
</section>
@endif
44 changes: 44 additions & 0 deletions project/resources/views/other/razorpay-checkout.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<form name='razorpayform' action="{{ $notify_url }}" method="POST">
<input type="hidden" name="razorpay_payment_id" id="razorpay_payment_id">
<input type="hidden" name="razorpay_signature" id="razorpay_signature" >
</form>
<script>
// Checkout details as a json
var options = {!!$json!!};
/**
* The entire list of Checkout fields is available at
* https://docs.razorpay.com/docs/checkout-form#checkout-fields
*/
options.handler = function (response){
document.getElementById('razorpay_payment_id').value = response.razorpay_payment_id;
document.getElementById('razorpay_signature').value = response.razorpay_signature;
document.razorpayform.submit();
};
// Boolean whether to show image inside a white frame. (default: true)
options.theme.image_padding = false;
options.modal = {
ondismiss: function() {
window.location.assign("{{ url()->previous() }}");
},
// Boolean indicating whether pressing escape key
// should close the checkout form. (default: true)
escape: true,
// Boolean indicating whether clicking translucent blank
// space outside checkout form should close the form. (default: false)
backdropclose: false
};
var rzp = new Razorpay(options);
//document.getElementById('rzp-button1').onclick = function(e){
rzp.open();
// e.preventDefault();
//}
</script>

0 comments on commit 9911273

Please sign in to comment.