@extends('layouts.back-end.app') @section('title',\App\CPU\translate('customer_loyalty_point').' '.\App\CPU\translate('report')) @push('css_or_js') @endpush @section('content')

{{\App\CPU\translate('customer_loyalty_point_report')}}

{{\App\CPU\translate('filter')}} {{\App\CPU\translate('options')}}

@php $transaction_status=request()->get('transaction_type'); @endphp

{{\App\CPU\translate('summary')}}

@php $credit = $data[0]->total_credit??0; $debit = $data[0]->total_debit??0; $balance = $credit - $debit; @endphp
{{\App\CPU\translate('debit')}}
{{$debit}}
{{\App\CPU\translate('credit')}}
{{$credit}}
{{\App\CPU\translate('balance')}}
{{$balance}}

{{\App\CPU\translate('transactions')}} {{$transactions->count()}}

@foreach($transactions as $k=>$wt) @endforeach
{{\App\CPU\translate('SL')}} {{\App\CPU\translate('transaction')}} {{\App\CPU\translate('id')}} {{\App\CPU\translate('Customer')}} {{\App\CPU\translate('credit')}} {{\App\CPU\translate('debit')}} {{\App\CPU\translate('balance')}} {{\App\CPU\translate('transaction_type')}} {{\App\CPU\translate('reference')}} {{\App\CPU\translate('created_at')}}
{{$k+$transactions->firstItem()}} {{$wt->transaction_id}} {{Str::limit($wt->user?$wt->user->f_name.' '.$wt->user->l_name:\App\CPU\translate('not_found'),20,'...')}} {{$wt->credit}} {{$wt->debit}} {{$wt->balance}} {{\App\CPU\translate($wt->transaction_type)}} {{$wt->reference}} {{date('Y/m/d '.config('timeformat'), strtotime($wt->created_at))}}
{!!$transactions->links()!!}
@if(count($transactions)==0)
Image Description

{{ \App\CPU\translate('No_data_to_show')}}

@endif
@endsection @push('script') @endpush @push('script_2') @endpush