@include('layouts.header')
@include('layouts.nav') @include('layouts.sidebar')

Remittance

@if (session('success'))
{{ session('success') }}
@endif @if (session('delete'))
{{ session('delete') }}
@endif
{{-- @csrf --}}
{{-- Modal Start --}}
@if (auth()->user()->type !== '2') @endif
{{-- Modal End --}} {{-- Table start --}}

Remittance Table

@if (auth()->user()->is_admin == '1') @endif @php $curr_page_total = (int) $remittances->perPage() * (int) $remittances->currentPage(); $start_id = (int) $remittances->total() - $curr_page_total; $end_id = $start_id + (int) $remittances->perPage(); //$id_no = count($remittances); @endphp @foreach ($remittances as $key => $remittance) @if (auth()->user()->is_admin == '1') @endif @if ($remittance->category === 'Home') @else @endif @if ($remittance->category === 'Home') @else @endif @php //$id_no--; $end_id--; @endphp @endforeach
No Date Member ID ‌‌ငွေလွှဲပြေစာအမှတ် ပို့သူအမည် ပို့သူဖုန်း လက်ခံသူအမည် လက်ခံသူဖုန်း မှတ်ပုံတင် လိပ်စာBranchTransfer Category Account Name Account Number Remark MYR RM Rate ပို့ခ Total Amount MMK KS ပေးငွေ ပြန်အမ်းငွေ Action
{{ $end_id }} {{ $remittance->created_at->format('Y-m-d') }} {{-- @foreach ($customers as $customer) @if ($customer->sender_name == $remittance->sender_name && ($customer->reciver_NRC == $remittance->receiver_NRC && $customer->reciver_name == $remittance->receiver_name)) {{ $customer->member_id ?? 'N/A' }} @break @endif @endforeach --}} @if ($remittance->member_id != null) {{ $remittance->member_id }} @else {{-- @if ($remittance->customer->reciver_phone == $remittance->receiver_phone) --}} @if ($remittance->customer) {{ $remittance->customer->member_id ?? 'N/A' }} @else {{ 'N/A' }} @endif {{-- @endif --}} @endif {{-- {{ $remittance->member_id ?? ($remittance->customer->member_id ?? 'N/A') }} --}} {{ $remittance->transaction_id }} {{ $remittance->sender_name }} {{ $remittance->sender_phone }} {{ $remittance->receiver_name }} {{ $remittance->receiver_phone }} {{ $remittance->receiver_NRC }} {{ $remittance->receiver_address }} {{-- @foreach ($branches as $branch) @if ($branch->id == $remittance->branch) {{ $branch->name }} @endif @endforeach --}} {{ $remittance->getbranch->name ?? 'N/A' }} @if ($remittance->category == 'KBZpay' || $remittance->category == 'KBZpay') K Pay @else {{ $remittance->category }} @endif N\A{{ $remittance->bank_name ?? $remittance->acc_name }}N\A{{ $remittance->bank_no ?? $remittance->phone }} @if ($remittance->remark) @foreach ($remittance->remark as $index => $remark) @if ($index == 'Admin') {{-- {!! nl2br(trim(preg_replace('/,/', "\n", $remittance->remark))) !!} --}} {{ $index . '-' . $remark }}
@elseif (strpos($index, 'Ygn') === false && strpos($index, 'Admin') === false) {{ $index . '-' . $remark }}
@else {{-- {!! nl2br(trim(preg_replace('/,/', "\n", $remittance->remark))) !!} --}} {{ $index . '-' . $remark }}
@endif @endforeach @endif
{{ $remittance->dollar_amount }} {{ $remittance->rate }} {{ number_format($remittance->trn_fee, 2, '.', ',') }} {{ $remittance->dollar_amount + $remittance->trn_fee }} {{ number_format($remittance->kyat_amount, 2, '.', ',') }} {{ number_format($remittance->deposit ?? 0) }} {{ number_format($remittance->change_due ?? 0) }} @php $branchId = auth()->user()->branch; $branch = \App\Models\Branch::find($branchId); @endphp @if (auth()->user()->is_admin == '1' || auth()->user()->level == 'Admin' || Str::contains($branch->name, 'Malaysia')) @endif
{{-- Table End --}}
Showing {{ $remittances->firstItem() ?? 0 }} to {{ $remittances->lastItem() ?? 0 }} of {{ $remittances->total() }} results
@include('layouts.footer')