@extends('layouts.app') @section('title', __('master::lang.master') . ' | ' . __('master::lang.add_pricing')) @section('content') @include('master::layouts.nav')

@lang('master::lang.add_new_pricing')

{{-- عرض رسائل النجاح --}} @if(session('success'))
{{ session('success') }}
@endif {{-- عرض رسائل الخطأ --}} @if(session('error'))
{{ session('error') }}
@endif {{-- عرض رسائل التحقق من البيانات --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::open([ 'url' => action([\Modules\Master\Http\Controllers\PricingController::class, 'store']), 'method' => 'POST', 'id' => 'create_pricing', ]) !!} {{-- اسم الخطة --}}
{!! Form::label('name', __('master::lang.pricing_name') . '*') !!} {!! Form::text('name', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('master::lang.pricing_name'), ]) !!}
{{-- السعر الشهري لكل مستخدم --}}
{!! Form::label('monthly_price_per_user', __('master::lang.monthly_price_per_user') . '*') !!} {!! Form::number('monthly_price_per_user', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('master::lang.monthly_price_per_user'), 'step' => '0.0001', 'min' => 0, ]) !!}
{{-- السعر السنوي لكل مستخدم --}}
{!! Form::label('yearly_price_per_user', __('master::lang.yearly_price_per_user') . '*') !!} {!! Form::number('yearly_price_per_user', null, [ 'class' => 'form-control', 'required', 'placeholder' => __('master::lang.yearly_price_per_user'), 'step' => '0.0001', 'min' => 0, ]) !!}
{{-- الوصف --}}
{!! Form::label('description', __('master::lang.description')) !!} {!! Form::textarea('description', null, [ 'class' => 'form-control', 'rows' => 3, 'placeholder' => __('master::lang.description'), ]) !!}
{{-- فترة السماح --}}
{!! Form::label('grace_period_days', __('master::lang.grace_period_days')) !!} {!! Form::number('grace_period_days', 3, [ 'class' => 'form-control', 'min' => 0, 'placeholder' => __('master::lang.grace_period_days_placeholder'), 'title' => 'عدد الأيام المسموح بها عند تجاوز الحد الأقصى للمستخدمين' ]) !!}
{{-- حالة التفعيل --}}
{{-- زر الإرسال --}}
{!! Form::submit(__('messages.submit'), ['class' => 'tw-dw-btn tw-dw-btn-success tw-text-white tw-dw-btn-lg']) !!}
{!! Form::close() !!}
@endsection @section('javascript') @endsection