PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
user
@extends('admin.layouts.adminMasterLayout') @section('title', 'Referral Commission History') @section('user_select','active') @section('content') <div class="container-fluid"> <div class="dashboard__main mb-4"> <h2>Referral Commission History For {{ $user->first_name }} {{ $user->last_name }}</h2> </div> <div class="card shadow mb-4"> <div class="card-body"> <div class="csv float-left"> </div> <div class="search-bar mt-2 mb-4 float-right"> </div> <div class="table-responsive"> <table class="table table-bordered" id="example" width="100%" cellspacing="0"> <thead> <tr> <th scope="col">Referee</th> <th scope="col">Referee Email</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_recived->count() > 0 ) @foreach ($referral_payments_recived as $item) <tr> <td>{{ $item->referralPaymentsGiver->first_name }} {{ $item->referralPaymentsGiver->last_name }} </td> <td> {{ $item->referralPaymentsGiver->email }}</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') <style type="text/css"> .pagination { float: right!important; padding-left: 0; list-style: none; border-radius: 0.35rem; display: inline-flex!important; } </style> @endpush
[-] show-invoice.blade.php
[edit]
[-] form.blade.php
[edit]
[+]
..
[-] edit-user-details.blade.php
[edit]
[-] referral-commission-details.blade.php
[edit]
[-] user-details.blade.php
[edit]
[-] user-list.blade.php
[edit]