|
5 | 5 | <div class="form-group col-md-5">
|
6 | 6 | <label for="name" class="field-required">Name</label>
|
7 | 7 | <input type="text" class="form-control" name="name" id="name" placeholder="Enter project name"
|
8 |
| - required="required" value="{{ old('name') }}"> |
| 8 | + required="required" value="{{ old('name', $projectData['name'] ?? '') }}"> |
9 | 9 | </div>
|
10 | 10 | <div class="form-group offset-md-1 col-md-5">
|
11 | 11 | <label for="client_id" class="field-required">Client</label>
|
12 | 12 | <select name="client_id" id="client_id" class="form-control" required="required">
|
13 | 13 | <option value="">Select client</option>
|
14 | 14 | @foreach ($clients as $client)
|
15 |
| - <option value="{{ $client->id }}" {{ old('client_id') == $client->id ? 'selected' : '' }}>{{ $client->name }}</option> |
| 15 | + <option value="{{ $client->id }}" {{ old('client_id', $projectData['client_id'] ?? '') == $client->id ? 'selected' : '' }}>{{ $client->name }}</option> |
16 | 16 | @endforeach
|
17 | 17 | </select>
|
18 | 18 | </div>
|
|
22 | 22 | <label for="status" class="field-required">Status</label>
|
23 | 23 | <select name="status" id="status" class="form-control" required="required">
|
24 | 24 | @foreach (config('project.status') as $key => $display_name)
|
25 |
| - <option value="{{ $key }}" {{ old('status') == $key ? 'selected' : '' }}>{{ $display_name }}</option> |
| 25 | + <option value="{{ $key }}" {{ old('status', $projectData['status'] ?? '') == $key ? 'selected' : '' }}>{{ $display_name }}</option> |
26 | 26 | @endforeach
|
27 | 27 | </select>
|
28 | 28 | </div>
|
|
82 | 82 | <div class="form-group offset-md-1 col-md-5">
|
83 | 83 | <input type="checkbox" id="isamc" name="is_amc" value="true">
|
84 | 84 | <label for="is_amc">AMC</label><br>
|
| 85 | + <input type="checkbox" id="send_mail_to_infra" name="send_mail_to_infra" value="true"> |
| 86 | + <label for="send_mail_to_infra">Send Project Initiation Email to Infrasupport</label><br> |
85 | 87 | </div>
|
86 | 88 | </div>
|
87 | 89 | <br>
|
88 | 90 | <div class="form-row">
|
89 | 91 | <div class="form-group col-md-5" v-if="projectType !== 'non-billable'">
|
90 | 92 | <label for="total_estimated_hours">{{ __('Total Estimated Hours') }}</label>
|
91 | 93 | <input type="number" class="form-control" name="total_estimated_hours" id="total_estimated_hours"
|
92 |
| - placeholder="Enter total estimated hours" value="{{ old('total_estimated_hours') }}"> |
| 94 | + placeholder="Enter total estimated hours" value="{{ old('total_estimated_hours', $projectData['total_estimated_hours'] ?? '') }}"> |
93 | 95 | </div>
|
94 | 96 | </div>
|
95 | 97 | </div>
|
96 | 98 | <div class="card-footer">
|
97 |
| - <button type="button" class="btn btn-primary mb-10" id="save-btn-action">Create</button> |
| 99 | + <button type="button" class="btn btn-primary" id="save-btn-action">Create</button> |
98 | 100 | </div>
|
99 | 101 | </div>
|
100 | 102 |
|
|
0 commit comments