@extends('layouts.app') @section('content') @if (session()->has('message'))
{{ session()->get('message') }}
@endif @if (session()->has('error'))
{{ session()->get('error') }}
@endif {{--
--}}
@if($dataShow)
Transaction Details
{{--
--}}
{{-- @dd($users); --}} @php $sender_detail = \App\Models\User::select('name','email','phone','country_code')->where('id',$transaction->sender_id)->first(); $receiver_detail = \App\Models\User::select('name','email','phone','country_code')->where('id',$transaction->receiver_id)->first(); @endphp
Sender name Sender phone Receiver Name Receiver Phone Pay Amount Tax Amount Total Pay
{{$sender_detail->name}} {{$sender_detail->country_code}} {{$sender_detail->phone}} {{$receiver_detail->name}} {{$receiver_detail->country_code}} {{$receiver_detail->phone}} {{$transaction->total_amount - $transaction->tax_amount}} {{$transaction->tax_amount}} {{$transaction->total_amount}}
@endif @endsection