@extends('layout.app')
@section('_style')
@endsection
@section('content')
@php
$permissions = setting('permissions');
$znsDrivers = \App\Services\Zns\ZnsManager::drivers();
$znsDriver = \App\Services\Zns\ZnsManager::currentDriver();
$hasPerm = function ($key) use ($permissions) {
return !empty($permissions) && in_array($key, $permissions);
};
// Danh sách chức năng có thể ẩn: [value gửi lên (giữ nguyên như cũ), nhãn, mô tả ngắn]
$hideableFeatures = [
['sms.index', 'Quản lý tin nhắn', 'Menu SMS / tin nhắn'],
['package.index', 'Quản lý gói nạp ví', 'Danh sách gói nạp ví'],
['package.customer', 'Quản lý nạp tiền', 'Tab ví tiền ở chi tiết khách hàng'],
['settings.index', 'Hạn mức thăng hạng rank', 'Cấu hình rank khách hàng'],
['promotions.index', 'Voucher khuyến mại', 'Quản lý voucher'],
['landipages.index', 'Quản lý landing page', 'Trang đích quảng cáo'],
['posts.index', 'Quản lý optin form', 'Form thu thập khách hàng'],
['customer-post.index', 'Khách hàng từ form', 'Danh sách khách từ form'],
['rules.index', 'Quản lý automation', 'Kịch bản tự động'],
['the_last', 'Xem thông báo', 'Chuông thông báo'],
['comment.edit', 'Tắt sửa trao đổi', 'Không cho sửa / xoá tin trao đổi'],
];
@endphp
{!! Form::open(array('url' => route('settings.storeAdmin'), 'method' => 'post', 'files'=> true,'id'=>'fvalidate','class'=>'sent-sms')) !!}
{{-- ===== Thông tin hệ thống ===== --}}
Thông tin hệ thống
Tiêu đề, hạn sử dụng, màu và logo hiển thị trên toàn hệ thống
{!! Form::label('title_website', 'Tiêu đề website', array('class' => 'control-label required')) !!}
{!! Form::text('title_website',setting('title_website'), array('class' => 'form-control')) !!}
{{ $errors->first('title_website', ':message') }}
{!! Form::label('expiry', 'Ngày hết hạn sử dụng', array('class' => 'control-label required')) !!}
{!! Form::text('expiry',setting('expiry'), array('class' => 'form-control','data-toggle' => 'datepicker','id'=>'date', 'autocomplete' => 'off')) !!}
{{ $errors->first('expiry', ':message') }}
{{-- ===== Tích hợp ZNS ===== --}}
Tích hợp ZNS
Nhà cung cấp gửi tin Zalo Notification Service và mẫu tin
{!! Form::label('zns_driver', 'Nhà cung cấp gửi ZNS', array('class' => 'control-label')) !!}
{!! Form::select('zns_driver', $znsDrivers, $znsDriver, array('class' => 'form-control', 'id' => 'zns_driver')) !!}
{{ $errors->first('zns_driver', ':message') }}
Cấu hình V9tech
{!! Form::label('v9tech_token', 'Access token (Bearer)', array('class' => 'control-label')) !!}
{!! Form::text('v9tech_token',setting('v9tech_token'), array('class' => 'form-control')) !!}
{{ $errors->first('v9tech_token', ':message') }}
{!! Form::label('v9tech_customer_code', 'Mã khách hàng', array('class' => 'control-label')) !!}
{!! Form::text('v9tech_customer_code',setting('v9tech_customer_code'), array('class' => 'form-control')) !!}
{{ $errors->first('v9tech_customer_code', ':message') }}
{!! Form::label('v9tech_callback_url', 'Callback URL', array('class' => 'control-label')) !!}
{!! Form::text('v9tech_callback_url',setting('v9tech_callback_url'), array('class' => 'form-control')) !!}
{{ $errors->first('v9tech_callback_url', ':message') }}
{{-- ===== Tuỳ chọn dữ liệu ===== --}}
Tuỳ chọn dữ liệu
Quy tắc khi nhập dữ liệu khách hàng
{{-- ===== Ẩn chức năng (name="permissions[]" - giữ nguyên value như cũ) ===== --}}
Ẩn chức năng
Bật công tắc để ẩn chức năng tương ứng khỏi hệ thống
Các thay đổi áp dụng cho toàn hệ thống sau khi lưu.
{{ Form::close() }}
@endsection
@section('_script')
@endsection