sarga payment

This commit is contained in:
merdan 2023-02-24 16:31:21 +05:00
parent fab3350cee
commit 02e8ec4226
2 changed files with 38 additions and 126 deletions

View File

@ -2,129 +2,3 @@
$cart = cart()->getCart();
@endphp
@if ($cart)
@php
$items = $cart->items;
@endphp
<div class="dropdown-toggle">
<a class="cart-link" href="{{ route('shop.checkout.cart.index') }}">
<span class="icon cart-icon"></span>
</a>
<span class="name">
{{ __('shop::app.header.cart') }}
<span class="count"> ({{ $cart->items->count() }})</span>
</span>
<i class="icon arrow-down-icon"></i>
</div>
<div class="dropdown-list" style="display: none; top: 52px; right: 0px;">
<div class="dropdown-container">
<div class="dropdown-cart">
<div class="dropdown-header">
<p class="heading">
{{ __('shop::app.checkout.cart.cart-subtotal') }} -
{!! view_render_event('bagisto.shop.checkout.cart-mini.subtotal.before', ['cart' => $cart]) !!}
@if (Webkul\Tax\Helpers\Tax::isTaxInclusive())
<b>{{ core()->currency($cart->base_grand_total) }}</b>
@else
<b>{{ core()->currency($cart->base_sub_total) }}</b>
@endif
{!! view_render_event('bagisto.shop.checkout.cart-mini.subtotal.after', ['cart' => $cart]) !!}
</p>
</div>
<div class="dropdown-content">
@foreach ($items as $item)
<div class="item">
<div class="item-image" >
@php
$images = $item->product->getTypeInstance()->getBaseImage($item);
@endphp
<a href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}" title="{{ $item->name }}">
<img src="{{ $images['small_image_url'] }}" alt=""/>
</a>
</div>
<div class="item-details">
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.name.before', ['item' => $item]) !!}
<div class="item-name">
<a href="{{ route('shop.productOrCategory.index', $item->product->url_key) }}" title="{{ $item->name }}">
{{ $item->name }}
</a>
</div>
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.name.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.options.before', ['item' => $item]) !!}
@if (isset($item->additional['attributes']))
<div class="item-options">
@foreach ($item->additional['attributes'] as $attribute)
<b>{{ $attribute['attribute_name'] }} : </b>{{ $attribute['option_label'] }}</br>
@endforeach
</div>
@endif
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.options.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.price.before', ['item' => $item]) !!}
<div class="item-price">
@if (Webkul\Tax\Helpers\Tax::isTaxInclusive())
<b>{{ core()->currency($item->base_total + $item->tax_amount) }}</b>
@else
<b>{{ core()->currency($item->base_total) }}</b>
@endif
</div>
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.price.after', ['item' => $item]) !!}
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.quantity.before', ['item' => $item]) !!}
<div class="item-qty">Quantity : {{ $item->quantity }}</div>
{!! view_render_event('bagisto.shop.checkout.cart-mini.item.quantity.after', ['item' => $item]) !!}
<div class="item-remove">
<a href="{{ route('shop.checkout.cart.remove', $item->id) }}" onclick="removeLink('{{ __('shop::app.checkout.cart.cart-remove-action') }}')">{{ __('shop::app.checkout.cart.remove-link') }}</a>
</div>
</div>
</div>
@endforeach
</div>
<div class="dropdown-footer">
<a href="{{ route('shop.checkout.cart.index') }}">{{ __('shop::app.minicart.view-cart') }}</a>
@php
$minimumOrderAmount = (float) core()->getConfigData('sales.orderSettings.minimum-order.minimum_order_amount') ?? 0;
@endphp
<proceed-to-checkout
href="{{ route('shop.checkout.onepage.index') }}"
add-class="btn btn-primary btn-lg"
text="{{ __('shop::app.minicart.checkout') }}"
is-minimum-order-completed="{{ $cart->checkMinimumOrder() }}"
minimum-order-message="{{ __('shop::app.checkout.cart.minimum-order-message', ['amount' => core()->currency($minimumOrderAmount)]) }}"
style="color: white;">
</proceed-to-checkout>
</div>
</div>
</div>
</div>
@else
<div class="dropdown-toggle">
<div style="display: inline-block; cursor: not-allowed">
<span class="icon cart-icon"></span>
<span class="name">{{ __('shop::app.minicart.cart') }}<span class="count"> ({{ __('shop::app.minicart.zero') }}) </span></span>
</div>
</div>
@endif

View File

@ -0,0 +1,38 @@
@extends('shop::layouts.master')
@section('page_title')
{{ __('shop::app.checkout.success.title') }}
@stop
@push('css')
<link rel="stylesheet" href="{{bagisto_asset('styles/order-accepted.css')}}">
@endpush
@section('content-wrapper')
<main class="payment-failed">
<h1>Кажется оплата не прошла</h1>
<h2>Попробуйте обновить страницу</h2>
<h2>Ответ от банка: Платеж отклонен</h2>
<div class="payment-failed-btn">
<button>Проверить оплату снова</button>
<button>Sargyda gec</button>
</div>
</main>
<!-- THANK YOU ========================================================================= -->
<section class="accepted-content">
<div class="container">
<div class="accepted-content-inner">
<div class="accepted-top">
<h2 class="accepted-title">Toleg gechmedi oydyan</h2>
</div>
<div class="accepted-middle">
<span class="middle-text">Gaytalap refresh edip barlap goraymesen </span>
<span class="middle-text">Bankdan gelen jogap sheylerakda : {{$message}}</span>
</div>
<div class="accepted-bottom">
<a href="?refresh">Tolegi tazeden barla</a>
<a href="{{ route('shop.checkout.onepage.index') }}">Sargyda geс</a>
</div>
</div>
</div>
</section>
@endsection