@extends('layouts.app') @section('title') {{ __('2fa_authenticator') }} @endsection @section('partner') active @endsection @section('section.header')

{{ __('personal_information') }}

@endsection @section('section.content')
@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('error'))
{{ Session::get('error') }}
@endif
Account Info

{{ __('account_information') }}

{{ __('Thông tin chiết khấu - IN') }}

@if ($user->discount_in) @foreach ($user->discount_in as $key => $value) @if ($key !== 'CARD')

{{ $key }}:

{{ $value }}{{ __('%') }}


@endif @endforeach @endif

{{ __('Thông tin chiết khấu - OUT') }}

@if ($user->discount_out) @foreach ($user->discount_out as $key => $value)

{{ $key }}:

{{ $value }}{{ __('%') }}


@endforeach @else @endif
@if ($user->discount_in && isset($user->discount_in['CARD']))

{{ __('Thông tin chiết khấu - Card') }}

@php $amounts = ['10000', '20000', '30000', '50000', '100000', '200000', '300000', '500000', '1000000']; $networks = ['VIETTEL', 'VINAPHONE', 'MOBIPHONE', 'VIETNAMOBILE']; @endphp @foreach ($amounts as $amount) @endforeach @foreach ($networks as $network) @foreach ($amounts as $amount) @endforeach @endforeach
Card amount{{ number_format($amount, 0, ',', '.') }}đ
{{ $network }} {{ $user->discount_in['CARD'][$network][$amount] ?? '0' }}%
@endif
@endsection @section('styles') @endsection @section('scripts') @endsection