@extends('frontend.master') @section('stylesheet') @endsection @section('content') @php $courseAmount = $paymentDetails->registrationTimeAmount; $courseName = $paymentDetails->course_title; $customPayment = $paymentDetails->course_custom_payment; $dueAmount = (int)$courseAmount - (int)$paymentDetails->paid_amount; $applicatonDate = strtotime($paymentDetails->application_date); $applicatonDate = date('Y-m-d',$applicatonDate); if($paymentDetails->isEarlyBirdValid && ($paymentDetails->early_bird_discount === null || $paymentDetails->early_bird_discount == 0)){ $earlyBirdDate = strtotime($paymentDetails->earlyBirdDate); $earlyBirdDate = date('Y-m-d',$earlyBirdDate); $earlyBirdDiscount = (int)$paymentDetails->earlyBirdDiscount; $dueAmount = $dueAmount-$earlyBirdDiscount; }else{ $earlyBirdDiscount=0; } $paymentStatus = $dueAmount==0 ? 'Paid' : 'Due'; //$paidStatus = $dueAmount == '0' ? $applicaiton->paid_status :($dueAmount == 0 ? 'p':'r'); @endphp

  • Course Name
    {{$courseName}}
  • Course fee
    {{$courseAmount}}
  • Course Due Amount
    {{$dueAmount}}
  • @if($paymentDetails->isEarlyBirdValid && $earlyBirdDiscount>0)
  • Earlybird Discount
    -{{$earlyBirdDiscount}}
  • @endif
  • Charges
    Vat & others
    0
  • {{--
  • --}} {{--
    --}} {{--
    --}} {{-- Brief description--}} {{--
    --}} {{-- 150--}} {{--
  • --}}
  • Total (BDT) {{$dueAmount}} TK

Your Details

@csrf
+88
@if(!empty($paymentDetails->coupons) && $paymentDetails->coupons->isNotEmpty())
You have coupon to use
{{--
Yes No
--}}
@endif {{-- @if(!empty($paymentDetails->coupons) && $paymentDetails->coupons->isNotEmpty())
You have coupon to use
@endif --}} @if($customPayment=='Y')
@endif
{{-- --}}
@endsection @section('customScript') @endsection