@extends('portal::layouts.customer') @section('title', __('portal::lang.new_service_request')) @section('content')

@lang('portal::lang.new_service_request')

{!! Form::open(['url' => action([\Modules\Portal\Http\Controllers\Customer\ServiceRequestController::class, 'store']), 'method' => 'post']) !!}
{!! Form::label('equipment_id', __('portal::lang.select_equipment') . ':') !!} {!! Form::select('equipment_id', $equipment->pluck('name', 'id'), $selectedEquipmentId ?? null, ['class' => 'form-control select2', 'required', 'placeholder' => __('portal::lang.select_equipment')]) !!}
{!! Form::label('failure_type', __('portal::lang.service_request') . ':') !!} {!! Form::text('failure_type', null, ['class' => 'form-control', 'placeholder' => __('portal::lang.service_request')]) !!}
{!! Form::label('root_cause', __('portal::lang.problem_description') . ':') !!} {!! Form::textarea('root_cause', null, ['class' => 'form-control', 'rows' => 4, 'required']) !!}
{!! Form::close() !!}
@endsection