@extends('layouts.adminapp') @section('css') @stop @section('content')

Set Discounts


@if(session('success'))
{{ session('success') }}
@endif @if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

New Discount

{{csrf_field()}}
 Make it unique.
 
 
 

Computation A - Less discount first before interest computation.

Computation B - Compute interest first before deducting discount

 

List of Discounts

@if(count($discounts)>0) @foreach($discounts as $discount) @endforeach @endif
Discount Code Discount Name Percentage Amount Compute
Type
Update Remove
    Tuition Fee Other Fee        
{{$discount->discount_code}} {{$discount->discount_description}}  @if($discount->tuition_fee > 0) {{number_format($discount->tuition_fee,3)}} % @endif  @if($discount->other_fee > 0) {{number_format($discount->other_fee,3)}} % @endif  @if($discount->amount > 0) {{number_format($discount->amount,2)}} @endif  @if($discount->compute_type == 0) A @else B @endif Update Remove
@stop @section('script') @stop