@extends('panel.layouts.master') @section('title', 'ویرایش تخفیف') @section('content') @include('panel.layouts.sidebar') @include('panel.layouts.header') ویرایش کوپن {!! Form::model($coupon, ['route' => ['coupons.update', $coupon->id], 'method' => 'put']) !!} @csrf عنوان* {{ Form::text('title', old('title'), ['class' => 'form-control']) }} {{-- choose --}} user_id ? 'checked' : '' }}> کاربر* انتخاب کنید @foreach ($users as $user) id == $coupon->user_id ? 'selected' : '' }} value="{{ $user->id }}" @if (old('user_id') == $user->id) selected @endif>{{ $user->full_name }} - {{ $user->phone }} @endforeach course_id ? 'checked' : '' }}> دوره* انتخاب کنید @foreach ($courses as $course) id == $coupon->course_id ? 'selected ' : '' }} value="{{ $course->id }}" @if (old('course_id') == $course->id) selected @endif>{{ $course->name }} @endforeach count == -1 ? '' : 'checked' }}> محدود* {{ Form::number('count', old('count'), ['class' => $coupon->count == -1 ? 'form-control d-none' : 'form-control', 'placeholder' => '5']) }} price ? '' : 'checked' }}> {{ 'قیمت' . '/' . 'درصد' }}* {{ Form::number('percent', old('percent'), ['class' => $coupon->percent ? 'form-control percent-input' : 'form-control percent-input d-none', 'placeholder' => 'درصد']) }} {{ Form::number('price', old('price'), ['class' => $coupon->price ? 'form-control price-input' : 'form-control price-input d-none', 'placeholder' => 'قیمت']) }} کد* {{ Form::text('code', old('code'), ['class' => 'form-control']) }} در صورت خالی بودن این فیلد، کد به صورت اتوماتیک ساخته می شود for_customer == 1 ? 'checked' : '' }}> فقط باشگاه مشتریان for_culture == 1 ? 'checked' : '' }}> فقط فرهنگیان status == 1 ? 'checked' : '' }}> فعال ذخیره {!! Form::close() !!} @endsection @section('script') @endsection
در صورت خالی بودن این فیلد، کد به صورت اتوماتیک ساخته می شود