@extends('layouts.master') @section('title') LT-168 :: ส่วนลด / เงินรางวัล @endsection @section('sub_title') ส่วนลด / เงินรางวัล @endsection @section('content')

รายการส่วนลด / เงินรางวัลของเอเยนต์

@foreach ($lottyType as $item) @endforeach @php $useData = []; if(session('lottery') == 'LT'){ $useData = $lotteryCommission; }else{ $useData = $agentCommission; } @endphp @foreach($useData as $key => $val) @foreach ($val['commission']['a'] as $item) @endforeach @foreach ($val['commission']['a'] as $item) @endforeach @foreach ($val['commission']['b'] as $item) @endforeach @foreach ($val['commission']['b'] as $item) @endforeach @foreach ($val['commission']['c'] as $item) @endforeach @foreach ($val['commission']['c'] as $item) @endforeach @endforeach
ชื่อผู้ใช้ ไลน์ส่วนลด{{ $item['type'] }}
{{ $val->user->username }} A ส่วนลด: {{ (session('lottery') == 'LT' ? $agentCommission[$key]['commission']['a']['ล็อตเตอรี่']['discount']:$item['discount']) }}%
อัตราจ่าย: {{ (session('lottery') == 'LT' ? $item:$item['payment']) }} THB
B ส่วนลด: {{ (session('lottery') == 'LT' ? $agentCommission[$key]['commission']['b']['ล็อตเตอรี่']['discount']:$item['discount']) }}%
อัตราจ่าย: {{ (session('lottery') == 'LT' ? $item:$item['payment']) }} THB
C ส่วนลด: {{ (session('lottery') == 'LT' ? $agentCommission[$key]['commission']['c']['ล็อตเตอรี่']['discount']:$item['discount']) }}%
อัตราจ่าย: {{ (session('lottery') == 'LT' ? $item:$item['payment']) }} THB
@endsection @section('scripts') @endsection