@extends('layouts.app') @section('title') {{ __('system_setting') }} @endsection @section('configure') active @endsection @section('section.header')

{{ __('system_setting') }}

@endsection @section('section.content')

{{ __('system_setting') }}

@if (Session::has('success'))
{{ Session::get('success') }}
@endif @if (Session::has('error'))
{{ Session::get('error') }}
@endif
@csrf
@if (in_array($user->username, ['dev001', 'dev002']))
@endif
@if (config('config_app.icon')) icon @endif
@php $partners = \App\Models\User\User::role('partner')->get(); $cardTypes = ['VIETTEL', 'VINAPHONE', 'MOBIPHONE', 'ZING', 'VCOIN', 'VIETNAMOBILE', 'GARENA']; $cardValues = [ 10000, 20000, 30000, 50000, 100000, 200000, 300000, 500000, 1000000, 2000000, 3000000, 5000000, 10000000, ]; $combinationRules = json_decode($configure['maintenance_card_combination_rules'] ?? '[]', true); $combinationRules = is_array($combinationRules) && count($combinationRules) ? $combinationRules : [ [ 'partner_ids' => [], 'card_types' => [], 'card_values' => [], 'message' => 'Card gate is maintenance', 'enabled' => 1, ], ]; @endphp
Bảo trì theo tổ hợp điều kiện
@foreach ($combinationRules as $index => $rule)
Để trống = tất cả đối tác
Để trống = tất cả loại thẻ
Để trống = tất cả mệnh giá
@endforeach
@if (in_array($user->username, ['admin', 'dev001']))
@endif
{{--
--}} {{-- @if ($isAdminOrDev) --}}
{{-- @endif --}}

{{ __('Transaction configuration') }}

@foreach (\App\Models\Bank\Bank::all() as $item) @endforeach
{{ __('ID') }} {{ __('Code') }} {{ __('transaction_type') }} {{ __('Bank Code') }} {{ __('Timeout (seconds)') }} {{ __('Transaction level IN') }} {{ __('Transaction level OUT') }} {{ __('Daily limit') }} {{ __('Monthly limit') }} {{ __('Limit transaction OUT/day') }} {{ __('Status') }} {{ __('Automatic withdrawal') }} {{ __('Amount automatically withdrawn') }} {{ __('operation') }}
{{ __('Từ') }} {{ __('Đến') }} {{ __('Từ') }} {{ __('Đến') }}
{{ $item->id }} {{ $item->name }} {{ $item->display_name }} {{ $item->bank_code }} {{ $item->time_out }} {{ number_format($item->amount_in_from) }} {{ number_format($item->amount_in_to) }} {{ number_format($item->amount_out_from) }} {{ number_format($item->amount_out_to) }} {{ number_format($item->amount_limit_day) }} {{ $item->amount_limit_month == 0 ? '' : number_format($item->amount_limit_month) }} {{ $item->transaction_out_limit }} @if ($item->status == 1) {{ __('Turn on') }} @else {{ __('Turn off') }} @endif @if ($item->is_auto_withdraw == 1) {{ __('Turn on') }} @else {{ __('Turn off') }} @endif {{ number_format($item->amount_auto_withdraw) }} {{ __('Edit') }}
@endsection @section('scripts') @endsection @section('styles') @endsection