Files
new_raffles/Modules/Content/resources/views/content1/partials/action.blade.php
2025-07-27 17:40:56 +05:45

108 lines
3.7 KiB
PHP

<div class="row">
<div class="col-lg-9">
<div class="card">
<div class="card-body">
<div class="row gy-3">
<div class="col-md-12">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Title')->required() }}
{{ html()->div('Please Enter Title')->class('invalid-feedback') }}
</div>
{{-- <div class="col-md-6">
{{ html()->label('Date')->class('form-label') }}
{{ html()->date('date')->class('form-control flatpickr-date')->placeholder('Date')->required() }}
{{ html()->div('Please Enter Date')->class('invalid-feedback') }}
</div>
<div class="col-md-6">
{{ html()->label('Release Date')->class('form-label') }}
{{ html()->date('release_date')->class('form-control flatpickr-date')->placeholder('Release Date')->required() }}
{{ html()->div('Please Enter Release Date')->class('invalid-feedback') }}
</div> --}}
<div class="col-md-6">
{{ html()->label('Product')->class('form-label') }}
{{ html()->select('product_id', $products)->class('form-control select2')->placeholder('Select Product')->required() }}
{{ html()->div('Please Select Product')->class('invalid-feedback') }}
</div>
<div class="col-md-6">
{{ html()->label('Category')->class('form-label') }}
{{ html()->select('category_id', $categories)->class('form-control select2')->placeholder('Select Category') }}
{{ html()->div('Please Select Category')->class('invalid-feedback') }}
</div>
{{-- <div class="col-md-6">
{{ html()->label('Upload Document')->class('form-label') }}
{{ html()->file('creative')->class('form-control') }}
</div> --}}
</div>
</div>
</div>
<!-- end card body -->
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Caption')->class('form-label') }}
{{ html()->textarea('caption')->class('form-control ckeditor-classic') }}
</div>
</div>
</div>
<!-- end card body -->
</div>
</div>
<!-- end card -->
<div class="col-lg-3">
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Publish</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Status')->class('form-label') }}
{{ html()->select('status', $status)->class('form-control select21') }}
</div>
</div>
</div>
<!-- end card body -->
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Document</h5>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
{{ html()->label('Image')->class('form-label visually-hidden') }}
{{ html()->file('creative')->class('form-control dropify')->attributes([
'data-default-file' => $editable ? asset('storage/' . $content?->creativedocument_path) : null,
'data-height' => 200,
]) }}
</div>
</div>
</div>
<!-- end card body -->
</div>
<div class="py-2 text-end">
<x-form-buttons :editable="$editable" label="Add" href="{{ route('content.index') }}" />
</div>
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush