PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
referral_commission
@extends('admin.layouts.adminMasterLayout') @section('title', 'Referral Commission History') @section('referral_commission_select','active') @section('content') <div class="container-fluid"> <div class="dashboard__main mb-4"> <h2>Referral Commission List</h2> </div> <div class="card shadow mb-4"> <div class="card-body"> <div class="card__body__inner"> <div class="header__card"> <div class="csv "> </div> </div> <div class="search-bar "> <form action="{{ route('referral-commission') }}" id="filter-frm-referral" method="GET"> Search <input type="text" name="referral_filter_name" id="referral_filter_name" value="{{ $referral_filter_name ?? '' }}"> From <input type="text" class="date_picker" name="referral_filter_from" value="{{ $referral_filter_from ?? '' }}"> To <input type="text" class="date_picker" name="referral_filter_to" value="{{ $referral_filter_to ?? '' }}"> <button type="submit">Submit</button> <input type="reset" class="reset__search__result" data-url="{{route('referral-commission')}}"> </form> </div> </div> <div class="table-responsive"> <table class="table table-bordered" id="example" width="100%" cellspacing="0"> <thead> <tr> <th scope="col">Referer</th> <th scope="col">Referee</th> <th scope="col">Commission Price ($)</th> <th scope="col">Commission Percentage (%)</th> <th scope="col">Commission Transaction Id</th> <th scope="col">Date</th> </tr> </thead> <tbody> @php $sum = 0; @endphp @if ($referral_payments->count() > 0 ) @foreach ($referral_payments as $item) <tr> <td>{{ $item->referralPaymentsReceiver->first_name }} {{ $item->referralPaymentsReceiver->last_name }} </td> <td>{{ $item->referralPaymentsGiver->first_name }} {{ $item->referralPaymentsGiver->last_name }} </td> <td>{{ number_format($item->commission_price,2) }} </td> <td>{{ $item->commission_percentage }} </td> <td>{{ $item->transaction_id }} </td> <td>{{ $item->created_at->format('d/m/Y H:ia') }} </td> @php $sum+= $item->commission_price; @endphp </tr> @endforeach @else <td colspan="7">No data Found!!</td> @endif </tbody> <p>Total Commission Earning : ${{ number_format($sum,2) }}</p> </table> </div> </div> </div> </div> @endsection @push('backend-styles') <link href = "https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel = "stylesheet"> <style type="text/css"> .pagination { float: right!important; padding-left: 0; list-style: none; border-radius: 0.35rem; display: inline-flex!important; } </style> @endpush @push('backend-scripts') <script src = "https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <script type="text/javascript"> $(function() { $( ".date_picker" ).datepicker({ showWeek:true, // yearSuffix:"-CE", dateFormat: 'yy-mm-dd', showAnim: "slide" }); $(".reset__search__result").on('click', function(){ location.href = $(this).data('url') }) }); /*(function ($) { $(document).ready(function () { $('#filter-frm-referral').on('change', function () { $('#filter-frm-referral').submit(); }); }); })(jQuery)*/ </script> @endpush
[+]
..
[-] referral-commission-list.blade.php
[edit]