25 lines
1.5 KiB
PHP
25 lines
1.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', __('assetexchange::lang.open_research'))
|
|
|
|
@section('content')
|
|
@include('assetexchange::layouts.nav')
|
|
|
|
<section class="content mt-page">
|
|
<div class="mt-page-header"><h1>@lang('assetexchange::lang.open_research')</h1></div>
|
|
<div class="mt-card"><div class="mt-card-body">
|
|
{!! Form::open(['url' => action([\Modules\AssetExchange\Http\Controllers\ResearchCaseController::class, 'store']), 'method' => 'post']) !!}
|
|
<div class="form-group">{!! Form::label('listing_id', __('assetexchange::lang.listing')) !!}{!! Form::select('listing_id', $listings, $listing?->id, ['class' => 'form-control select2', 'required']) !!}</div>
|
|
<div class="form-group">{!! Form::label('title', __('assetexchange::lang.title')) !!}{!! Form::text('title', $listing ? 'تحقیق — '.$listing->title : null, ['class' => 'form-control']) !!}</div>
|
|
<div class="form-group">{!! Form::label('lead_researcher_id', __('assetexchange::lang.lead_researcher')) !!}{!! Form::select('lead_researcher_id', $users, null, ['class' => 'form-control select2']) !!}</div>
|
|
<div class="checkbox"><label>{!! Form::checkbox('spawn_templates', 1, true, ['class' => 'input-icheck']) !!} @lang('assetexchange::lang.spawn_research_templates')</label></div>
|
|
<button type="submit" class="btn btn-primary">@lang('assetexchange::lang.open_research')</button>
|
|
{!! Form::close() !!}
|
|
</div></div>
|
|
</section>
|
|
@endsection
|
|
|
|
@section('javascript')
|
|
<script>$(function(){ $('.select2').select2(); });</script>
|
|
@endsection
|