@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content') {!! $variables['judul'] !!} @csrf Promotion Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif Reward Method -- Select Reward Method -- @foreach($rewardMethods as $key => $method) reward_method ?? '') == $key ? 'selected' : '' }}> {{ $method }} @endforeach @if ($errors->has('reward_method')) {{ $errors->first('reward_method') }} @endif {{ old('description', $data->description ?? '') }} Description @if ($errors->has('description')) {{ $errors->first('description') }} @endif Start Date @if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif End Date @if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif Start Time (opsional) End Time (opsional) Device Model @php $isAllDevices = $data->id ? $data->deviceModels->isEmpty() : false; $selectedDeviceIds = $data->id ? $data->deviceModels->pluck('id')->toArray() : []; @endphp Semua Device Pilih Device @foreach($deviceModels as $model) id, old('device_model_ids', $selectedDeviceIds)) ? 'selected' : '' }}> {{ $model->brand }} {{ $model->model_name }} @endforeach @if ($errors->has('device_model_ids')) {{ $errors->first('device_model_ids') }} @endif Max Claims Per User @if ($errors->has('max_claims_per_user')) {{ $errors->first('max_claims_per_user') }} @endif Total Budget (Rp) @if ($errors->has('total_budget')) {{ $errors->first('total_budget') }} @endif Banner Image @if($data->banner_image) @else @endif Format: jpg, png, webp, gif. Maks 2MB. Kosongkan jika tidak ingin mengubah gambar. @if ($errors->has('banner_image_file')) {{ $errors->first('banner_image_file') }} @endif is_active ?? true) ? 'checked' : '' }}> Active Reward Configuration Hadiah Langsung Configuration Add Reward Undian Configuration Add Prize Draw Date Kuota Kupon Undian Kosongkan jika tidak ada batas kupon Point Reward Configuration Points Didapat * Jumlah poin yang diterima end user saat klaim disetujui. Sub-Periode (opsional) Tambah Sub-Periode Sub-periode akan menggantikan jumlah poin utama selama rentang tanggal tersebut. {{-- end point-reward-config --}} {{-- end configuration-section --}} Save Back @endsection