@extends('admin.layouts.app') @push('styles_top') @endpush @section('content')
{{ trans('update.cart_discount') }}
{{trans('admin/main.dashboard')}}
{{ trans('update.cart_discount') }}
{{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate')))
{{ trans('auth.language') }}
@foreach($userLanguages as $lang => $language)
get('locale', app()->getLocale())) == mb_strtolower($lang)) selected @endif>{{ $language }}
@endforeach
@error('locale')
{{ $message }}
@enderror
@else
@endif
{{ trans('admin/main.title') }}
@error('title')
{{ $message }}
@enderror
{{ trans('update.subtitle') }}
@error('subtitle')
{{ $message }}
@enderror
{{ trans('update.coupon') }}
@foreach($discounts as $discount)
discount_id == $discount->id) ? 'selected' : '' }}>{{ $discount->title }} - {{ ($discount->discount_type == \App\Models\Discount::$discountTypePercentage) ? ($discount->percent."%") : handlePrice($discount->amount) }}
@endforeach
@error('discount_id') {{ $message }} @enderror
show_only_on_empty_cart) ? 'checked="checked"' : '' }} class="custom-switch-input"/>
{{ trans('update.show_only_on_empty_cart') }}
{{ trans('update.cart_discount_show_only_on_empty_cart_hint') }}
enable) ? 'checked="checked"' : '' }} class="custom-switch-input"/>
{{ trans('update.enable') }}
{{ trans('update.cart_discount_enable_hint') }}
{{ trans('admin/main.submit') }}
@endsection @push('scripts_bottom') @endpush