@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')

{!! $variables['judul'] !!}

@csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('reward_method')) {{ $errors->first('reward_method') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
@php $isAllDevices = $data->id ? $data->deviceModels->isEmpty() : false; $selectedDeviceIds = $data->id ? $data->deviceModels->pluck('id')->toArray() : []; @endphp
@if ($errors->has('device_model_ids')) {{ $errors->first('device_model_ids') }} @endif
@if ($errors->has('max_claims_per_user')) {{ $errors->first('max_claims_per_user') }} @endif
@if ($errors->has('total_budget')) {{ $errors->first('total_budget') }} @endif
@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' : '' }}>
{{-- end point-reward-config --}}
{{-- end configuration-section --}} Back
@endsection