@extends('app') @section('content')

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {!! Form::model($event, ['method' => $event ? 'PATCH' : 'POST','route' => $event ? ['events.update', $event->id] : 'events.store','id'=>'form_events', 'novalidate'=>"novalidate","enctype"=>"multipart/form-data"]) !!} @if($event)
{!! Form::text('event_id', null, ['class' => 'form-control' , 'id'=>'arabic_name_input' , 'readonly']) !!}
{!! Form::label('event_id', 'الهوية', ['class' => 'form-label']) !!}
@endif
{!! Form::text('arabic_title', null, ['class' => 'form-control' , 'id'=>'arabic_name_input']) !!} 40 الحروف المتبقية
{!! Form::label('arabic_title', 'العنوان العربية', ['class' => 'form-label']) !!} *
{!! Form::text('english_title', null, ['class' => 'form-control' , 'style' => "text-align: left" , 'id'=>'english_name_input']) !!} 40 الحروف المتبقية
{!! Form::label('english_title', 'العنوان الانجليزية', ['class' => 'form-label']) !!}
{{-- {!! Form::date('date', null , ['class' => 'form-control ', 'id'=>'date' ,'required' => true]) !!}--}} {{----}} {!! Form::text('date', $event ? strftime("%d/%m/%Y",strtotime(str_replace("/","-",$event->date))) : '', ['class' => 'form-control','id'=>'date']) !!}
{!! Form::label('date', 'التاريخ', ['class' => 'form-label']) !!}
gender==0 ? 'checked' : ''):'checked' }} name="gender" id="both"> gender==1 ? 'checked' : ''):'' }} name="gender" id="male"> gender==2 ? 'checked' : ''):'' }} name="gender" id="female">
{!! Form::label('gender', 'الجنس', ['class' => 'form-label']) !!}
status==1 ? 'checked' : ''):'checked' }} value="1" name="status" id="yes"> status==0 ? 'checked' : ''):'' }} name="status" id="no">
{!! Form::label('status', 'الحالة', ['class' => 'form-label']) !!}
إلغاء
{!! Form::submit($event ? 'تحديث' : 'حفظ', ['class' => 'btn btn-primary btn-cons','id' => 'btn-submit']) !!}
{!! Form::close() !!}
@endsection @section('page_script') @endsection