<commit_before>@extends('layouts.app')
<head xmlns="http://www.w3.org/1999/html">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
    <link rel="stylesheet" href="/resources/demos/style.css">
</head>

@section('content')
    {!! Form::open(['url' => '/workorder/updateData']) !!}

    <div class="container">
        <div class="row">
            <div class="col-md-10">
                <br> <br>
                 <input type="hidden" name="supplyData" id="supplyData" value="">

                <div class="panel panel-default">
                    {{--{!! Form::model($wo_edit_data,['method'=> 'PATCH','route'=>['workorder.update',$wo_edit_data->wo_id]]) !!}--}}
                    <div class="pull-left">
                        <form action="{{ URL::previous() }}" method="GET">{{ csrf_field() }}
                            <button type="submit" id="create-resident" class="btn btn-primary"><i class="fa fa-btn fa-file-o"></i>Back</button>
                        </form>
                    </div>
                    <div class="panel-heading"> Work Order Edit Form</div>
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors-> all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    <div class="panel-body" style="padding-left: 15%">


                        {{ Form::hidden('wo_id', "$wo_edit_data->id", array('id' => 'wo_id_hidden')) }}
                        {!! Form::label('requester', 'Requestor:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-sm-4">
                            {!! Form::text('requestor_name',$wo_edit_data->requestor_name,
                             array('id' => 'requestername')) !!}
                        </div.panel-heading>
                        </br> </br>
                        <span style="color: red; display:block; float:left">*</span>
                        {!! Form::label('cntr_name', 'Center Name:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            <div class="form-group">
                                {{ Form::select('cntr_name', array_merge([0 => 'Please Select']) + $centers, $wo_edit_data->cntr_id,
                                 array('id' => 'center_dropdown', 'class' => 'col-md-4','required' => 'required')) }}
                            </div>
                        </div.panel-heading>
                         </br> </br>
                         {!! Form::label('apartment no', 'Apartment No:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('apt_id', array_merge([0 => 'Please Select']) + $apartments, $wo_edit_data->apt_id,
                            array('id' => 'apartment_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>

                        </br> </br>

                        {!! Form::label('residentname', 'Resident Name:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('residentname', array_merge([0 => 'Please Select']) + $residents , $wo_edit_data->resident_id,
                            array('id' => 'residentname_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>

                        </br> </br>
                        {!! Form::label('commonarea', 'Common Area/System:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('ca_id', array_merge([0 => 'Please Select']), 'default',
                            array('id' => 'commonarea_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>


                        </br> </br>

                        {!! Form::label('resident_comments', 'Resident Comments:' ,['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-6">
                            {!! Form::text('resident_comments',$wo_edit_data->resident_comment,
                            array('id' => 'resident_comments','readonly' => true,'size'=>70)) !!}
                        </div.panel-heading>

                        </br> </br>


                        {!! Form::label('status', 'Status:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-6">
                            @if($user->hasRole('admin'))
                                {!! Form::select('order_status', ['Please Select' => 'Please Select','Open' => 'Open','In Progress' => 'In Progress',
                                   'Wait for third party vendor' => 'Wait for third party vendor','Complete' => 'Complete', 'Close' => 'Close'],
                                  $wo_edit_data->order_status, array('class' => 'col-md-6')) !!}
                            @else<commit_msg>Work Order Common area edit fix<commit_after>@extends('layouts.app')
<head xmlns="http://www.w3.org/1999/html">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
    <link rel="stylesheet" href="/resources/demos/style.css">
</head>

@section('content')
    {!! Form::open(['url' => '/workorder/updateData']) !!}

    <div class="container">
        <div class="row">
            <div class="col-md-10">
                <br> <br>
                 <input type="hidden" name="supplyData" id="supplyData" value="">

                <div class="panel panel-default">
                    {{--{!! Form::model($wo_edit_data,['method'=> 'PATCH','route'=>['workorder.update',$wo_edit_data->wo_id]]) !!}--}}
                    <div class="pull-left">
                        <form action="{{ URL::previous() }}" method="GET">{{ csrf_field() }}
                            <button type="submit" id="create-resident" class="btn btn-primary"><i class="fa fa-btn fa-file-o"></i>Back</button>
                        </form>
                    </div>
                    <div class="panel-heading"> Work Order Edit Form</div>
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                            <ul>
                                @foreach ($errors-> all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif
                    <div class="panel-body" style="padding-left: 15%">


                        {{ Form::hidden('wo_id', "$wo_edit_data->id", array('id' => 'wo_id_hidden')) }}
                        {!! Form::label('requester', 'Requestor:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-sm-4">
                            {!! Form::text('requestor_name',$wo_edit_data->requestor_name,
                             array('id' => 'requestername')) !!}
                        </div.panel-heading>
                        </br> </br>
                        <span style="color: red; display:block; float:left">*</span>
                        {!! Form::label('cntr_name', 'Center Name:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            <div class="form-group">
                                {{ Form::select('cntr_name', array_merge([0 => 'Please Select']) + $centers, $wo_edit_data->cntr_id,
                                 array('id' => 'center_dropdown', 'class' => 'col-md-4','required' => 'required')) }}
                            </div>
                        </div.panel-heading>
                         </br> </br>
                         {!! Form::label('apartment no', 'Apartment No:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('apt_id', array_merge([0 => 'Please Select']) + $apartments, $wo_edit_data->apt_id,
                            array('id' => 'apartment_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>

                        </br> </br>

                        {!! Form::label('residentname', 'Resident Name:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('residentname', array_merge([0 => 'Please Select']) + $residents , $wo_edit_data->resident_id,
                            array('id' => 'residentname_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>

                        </br> </br>
                        {!! Form::label('commonarea', 'Common Area/System:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-8">
                            {{ Form::select('ca_id', array_merge([0 => 'Please Select']) + $commonarea , $wo_edit_data->ca_id,
                            array('id' => 'commonarea_dropdown', 'class' => 'col-md-4')) }}
                        </div.panel-heading>


                        </br> </br>

                        {!! Form::label('resident_comments', 'Resident Comments:' ,['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-6">
                            {!! Form::text('resident_comments',$wo_edit_data->resident_comment,
                            array('id' => 'resident_comments','readonly' => true,'size'=>70)) !!}
                        </div.panel-heading>

                        </br> </br>


                        {!! Form::label('status', 'Status:', ['class' => 'col-md-3 control-label']) !!}
                        <div.panel-heading class="col-md-6">
                            @if($user->hasRole('admin'))
                                {!! Form::select('order_status', ['Please Select' => 'Please Select','Open' => 'Open','In Progress' => 'In Progress',
                                   'Wait for third party vendor' => 'Wait for third party vendor','Complete' => 'Complete', 'Close' => 'Close'],
                                  $wo_edit_data->order_status, array('class' => 'col-md-6')) !!}
                            @else
{'fraction_non_alphanumeric': 0.18421529539688292, 'fraction_numerical': 0.007430228343602754, 'mean_word_length': 1.4548487544483986, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 216, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6706681', 'n_tokens_mistral': 3098, 'n_tokens_neox': 2929, 'n_words': 497}