@extends('layouts.master') @section('title') LT-99 :: แก้ไขตั้งค่าอัตราส่วนของเอเยนต์ @endsection @section('sub_title') แก้ไขตั้งค่าอัตราส่วน :: {{ $user->username }} : {{ $user->name }} {{ lotteryName($country) }} @endsection @section('content')
$@csrf

แก้ไขตั้งค่าอัตราส่วน

{{-- --}}

ขั้นต่ำต่อไม้ / สูงสุดต่อไม้ / สูงสุดต่อหมายเลข

@foreach ($editUserLimit as $type => $lotteryValue)
@endforeach

ส่วนลด / เงินรางวัล

@foreach ($editUserCommission['a'] as $type => $lotteryValue)
@if (isLotteryType($country)) @else
upline && $user->upline->isAgent()) max="{{ $uplineCommission['a'][$type]['payment'] }}" @endif>
@endif
@endforeach
@foreach ($editUserCommission['b'] as $type => $lotteryValue)
@if (isLotteryType($country)) @else
upline && $user->upline->isAgent()) max="{{ $uplineCommission['b'][$type]['payment'] }}" @endif>
@endif
@endforeach
@foreach ($editUserCommission['c'] as $type => $lotteryValue)
@if (isLotteryType($country)) @else
upline && $user->upline->isAgent()) max="{{ $uplineCommission['c'][$type]['payment'] }}" @endif>
@endif
@endforeach
@if (isLotteryType($country))

อัตราจ่ายเงินรางวัล

@foreach ($editLotteryCommission['a'] as $key => $item)
@endforeach
@foreach ($editLotteryCommission['b'] as $key => $item)
@endforeach
@foreach ($editLotteryCommission['c'] as $key => $item)
@endforeach
@endif
ข้อมูลการถือสู้

เปอร์เซ็นต์ถือสู้

{{-- {{ dd($editUserPercent) }} --}} @foreach ($editUserPercent as $type => $lotteryValue) @php $advisorPercent = $user->isAdmin() ? 100 : ($editUserPercent ? $editUserPercent[$type][$user->upline->position] : 100); if ($user->upline && $user->upline->isAdmin()) { $toLoop = 100; } else { $toLoop = $advisorPercent; } @endphp
@endforeach
@include('admin.agent.setting.components.createSettingModal') @endsection @section('scripts') @endsection