@extends('layout.master') @push('plugin-styles') @endpush @section('content')
Transactions
{{-- @if (Session::get('role') != 'retailer')
@endif --}}
@php $no = 1; $d = 0; $c = 0; @endphp @foreach ($payment as $pay) @if ($pay['type'] == 'adjustment') @else @endif @endforeach
Sl no. Transaction Id Transaction With Credit Debit Date Type
{{ $no++ }} {{ $pay['_id'] }} {{ $pay['userName'] }} -- @if ($pay['status'] != 'pending') @php $c += $pay['creditPoint']; @endphp @endif {{ number_format($pay['creditPoint']) }} @if ($pay['status'] != 'pending') @php $d += $pay['creditPoint']; @endphp @endif {{ number_format($pay['creditPoint']) }} -- {{ date('d/m/Y h:i:s A', strtotime($pay['created_at'])) }} {{ ucfirst($pay['type']) }} @if ($pay['status'] == 'success') {{ $pay['status'] }} @elseif($pay['status'] == 'pending') {{ $pay['status'] }} @elseif($pay['status'] == 'reject') {{ $pay['status'] }} @endif
Total {{ $d }} {{ $c }}
@endsection @push('plugin-scripts') @endpush @push('custom-scripts') @endpush @push('plugin-scripts') @endpush @push('custom-scripts') @endpush