@extends('admin.layouts.app') @section('title', 'Transactions') @section('content') @include('admin.includes.alerts')
@if(count($transactions) > 0) @foreach($transactions as $index => $txn) @endforeach @else @endif
SN Item Type Control# Mobile Channel Status Code Credit Debit Reference Receipt Response Request Company Updated Action
{{$index + $transactions->firstItem()}} {{$txn->full_name}} @if($txn->item_type == 1) Ticket @elseif($txn->item_type == 2) Parcel @endif {{$txn->ref_code}} {{!empty($txn->msisdn) ? $txn->msisdn:'N/A'}} @if($txn->channel == "POS") POS @elseif($txn->channel == "WEB") WEB @else {{ $txn->channel }} @endif @if($txn->txn_status == "NOT PAID YET") NOT PAID YET @elseif($txn->txn_status == "PAID CASH" || $txn->txn_status == "CASH") PAID CASH @elseif($txn->txn_status == "PAID ONLINE") PAID ONLINE @elseif($txn->txn_status == "Ticket Cancelled" || $txn->txn_status == "CANCELLED") CANCELLED @elseif($txn->txn_status == "INVOICE") INVOICE @else PENDING @endif {{$txn->resp_code}} {{!empty($txn->amount_in) ? $txn->amount_in:'0'}} {{!empty($txn->amount_out) ? $txn->amount_out:'0'}} {{$txn->txn_token}} @if($txn->receipt != NULL) {{$txn->receipt}} @else {{$txn->transactionID}} @endif {{!empty($txn->response) ? $txn->response:''}} {{!empty($txn->request) ? $txn->request:''}} {{!empty($txn->company) ? $txn->company:\App\Models\Company::where(['id' => $txn->company_id])->first()->name }} {{$txn->updated_at}}
No Transaction record(s) to display for Now !!!
{{ $transactions->links() }}
@endsection