AI Review Center
Commit Review Workspace ?
Select a commit on the left to inspect quality, security, business value, findings, and suggested code changes.
Project AI Score
?
67%
Quality Avg
?
72%
Security Avg
?
54%
Reviews
?
37
Review Result ?
jattin01/army · 465fefca
The commit adds or modifies several controller methods for filtering, retrieving and processing demand data with some additional validations and view changes for better UI. While the code includes important data filtering and improves UI clarity, it contains duplicated date/time handling and partially commented code blocks. Input validation exists but can be more consistent. Some queries and relationships may benefit from optimization. The commit message is vague and does not describe the change details. Overall, it's functional but could be improved for clarity, security, and robustness.
Quality
?
75%
Security
?
55%
Business Value
?
70%
Maintainability
?
68%
Issues & Suggested Fixes
?
1AI detects the issue
2Shows file, line, or evidence
3Suggests the fix to apply
Poor Description
Where
commit message
Issue / Evidence
poor description
Suggested Fix
provide a detailed and clear commit message describing the changes made
Missing Validation
Where
app/Http/Controllers/InventoryController.php:21
Issue / Evidence
missing validation of date input format
Suggested Fix
add validation/sanitization to ensure correct date format and prevent injection or errors
Date Filtering Uses Direct Input
Where
app/Http/Controllers/McoDemandController.php:42
Issue / Evidence
date filtering uses direct input
Suggested Fix
validate date format before using in query to prevent errors or injection
Missing Validation
Where
app/Http/Controllers/UrgencyController.php:579
Issue / Evidence
inconsistent validation rules
Suggested Fix
ensure all input validation uses strict and consistent rules
Long Function
Where
app/Http/Controllers/InventoryController.php:13
Issue / Evidence
method complexity and query building
Suggested Fix
consider splitting large methods and queries into reusable functions to improve readability and maintainability
Raw Queries Without Parameter Binding
Where
app/Http/Controllers/McoScaleController.php:394
Issue / Evidence
raw queries without parameter binding
Suggested Fix
ensure all raw queries use parameter binding or validations to prevent SQL injection risks
Business Logic In View
Where
resources/views/demand/spares.blade.php:184
Issue / Evidence
business logic in view
Suggested Fix
move complex calculations and logic from blade view to controller to enhance code separation and testability
Potential Null Dereference
Where
resources/views/inventory/cart.blade.php:15
Issue / Evidence
potential null dereference
Suggested Fix
add checks to ensure nested relationships exist safely to avoid runtime errors
Commented Out Code
Where
app/Http/Controllers/UrgencyController.php:522
Issue / Evidence
commented out code
Suggested Fix
remove or document reason for keeping large commented code blocks
Code Change Preview · app/Http/Controllers/InventoryController.php
?
Removed / Before Commit
- - class InventoryController extends Controller - { - public function index() - { - $demands = McoDemand::select('mco_demands.mco_demand_no')->wherenotnull('mco_demand_no') - ->join('mco_admin_demand_approvals as approvals', 'mco_demands.req_no', '=', 'approvals.req_no') - ->groupBy('mco_demands.mco_demand_no') - ->pluck('mco_demands.mco_demand_no') - ->toArray(); - - return view('inventory.index', compact('demands')); - } - - - public function getDemandDetails($demand_no) - { - $demand_no_decrypted = decrypt($demand_no);
Added / After Commit
+ + class InventoryController extends Controller + { + public function index(Request $request) + { + $query = McoDemand::select('mco_demands.mco_demand_no') + ->whereNotNull('mco_demand_no') + ->join('mco_admin_demand_approvals as approvals', 'mco_demands.req_no', '=', 'approvals.req_no') + ->groupBy('mco_demands.mco_demand_no'); + + // Filter by date range if provided + if ($request->filled('date')) { + // Expecting format: YYYY-MM-DD - YYYY-MM-DD + [$start, $end] = explode(' - ', $request->date); + $query->whereBetween('mco_demands.created_at', [$start . ' 00:00:00', $end . ' 23:59:59']); + } + + $demands = $query->pluck('mco_demands.mco_demand_no')->toArray();
Removed / Before Commit
- public function storeIssueGroup(Request $request) - { - // Check if request is JSON (inline editable save) - if ($request->isJson()) - { - $id = $request->input('id'); - $field = $request->input('field'); - $value = $request->input('value'); - $issuegroup->save(); - - return response()->json(['success' => true, 'message' => 'Updated successfully']); - } - } - - }
Added / After Commit
+ public function storeIssueGroup(Request $request) + { + // Check if request is JSON (inline editable save) + + $id = $request->input('id'); + $field = $request->input('field'); + $value = $request->input('value'); + $issuegroup->save(); + + return response()->json(['success' => true, 'message' => 'Updated successfully']); + } + + }
Removed / Before Commit
- $query = McoDemand::with(['workEquipment.Equipments']) - ->select('work_equipment_id', 'job_no', 'req_no') - ->where('status', 'approved') - ->whereNotIn(DB::raw("(work_equipment_id, job_no, req_no)"), function($q) { - $q->selectRaw("equipment_id, job_no, req_no") - ->from('mco_admin_demand_approvals');
Added / After Commit
+ $query = McoDemand::with(['workEquipment.Equipments']) + ->select('work_equipment_id', 'job_no', 'req_no') + ->where('status', 'approved') + ->whereIn('req_no', function ($q) { + $q->select('req_no')->from('mco_submissions'); + }) + ->whereNotIn(DB::raw("(work_equipment_id, job_no, req_no)"), function($q) { + $q->selectRaw("equipment_id, job_no, req_no") + ->from('mco_admin_demand_approvals');
Removed / Before Commit
- { - public function index(Request $request) - { - $query = McoDemand::select('work_equipment_id', 'job_no', 'req_no') - ->where('status', 'approved'); - - // Apply filters - $q->where('group_id', $request->group_id); - }); - } - - $query->groupBy('work_equipment_id', 'job_no', 'req_no'); - - $demands = $query->paginate(10);
Added / After Commit
+ { + public function index(Request $request) + { + $query = McoDemand::select('work_equipment_id', 'job_no', 'req_no','created_at') + ->where('status', 'approved'); + + // Apply filters + $q->where('group_id', $request->group_id); + }); + } + if ($request->filled('class_name')) { + $query->whereHas('workEquipment.RepairClass', function($q) use ($request) { + if ($request->class_name == 'Other') { + $q->where('name', '!=', 'CL A'); + } else { + $q->where('name', $request->class_name); + } + });
Removed / Before Commit
- return Excel::download(new McoScaleDataExport($tableName), $fileName); - } - - public function showData(McoScale $scale) - { - $table = $scale->table_name; - - if (!Schema::hasTable($table)) { - return redirect()->back()->withErrors('Table does not exist.'); - } - - // Get all columns and remove unwanted ones - $columns = Schema::getColumnListing($table); - $columns = array_diff($columns, ['created_at', 'updated_at', 'percentage', 'target']); - - // Fetch rows but only for the required columns - $rows = DB::table($table)->select($columns)->get(); -
Added / After Commit
+ return Excel::download(new McoScaleDataExport($tableName), $fileName); + } + + public function showData(McoScale $scale, Request $request) + { + $table = $scale->table_name; + + if (!Schema::hasTable($table)) { + return redirect()->back()->withErrors('Table does not exist.'); + } + + // Columns + $columns = Schema::getColumnListing($table); + $columns = array_diff($columns, ['created_at', 'updated_at', 'percentage', 'target']); + + // Base query + $query = DB::table($table); +
Removed / Before Commit
- } - - // Generate NAC - modal submit - public function nacAssign(Request $request, $id) - { - $request->validate([ - 'lpr_no' => 'required|string', - 'nac_no' => 'required|string', - 'nac_date' => 'required|date', - 'validity_date' => 'required|date|after_or_equal:nac_date', - ]); - - $urgencyMaster = UrgencyMaster::with('items')->findOrFail($id); - - // Save NAC Master - $nacMaster = \App\Models\NacMaster::create([ - 'nac_no' => $request->nac_no, - 'nac_date' => $request->nac_date,
Added / After Commit
+ } + + // Generate NAC - modal submit + // public function nacAssign(Request $request, $id) + // { + // $request->validate([ + // 'lpr_no' => 'required|string', + // 'nac_no' => 'required|string', + // 'nac_date' => 'required|date', + // 'validity_date' => 'required|date|after_or_equal:nac_date', + // ]); + + // $urgencyMaster = UrgencyMaster::with('items')->findOrFail($id); + + // // Save NAC Master + // $nacMaster = \App\Models\NacMaster::create([ + // 'nac_no' => $request->nac_no, + // 'nac_date' => $request->nac_date,
Removed / Before Commit
- protected $casts = [ - 'spares' => 'array', - ]; - - }
Added / After Commit
+ protected $casts = [ + 'spares' => 'array', + ]; + public function mcoDemand() + { + return $this->belongsTo(McoDemand::class, 'mco_demand_no', 'mco_demand_no'); + } + + }
Removed / Before Commit
- { - return $this->hasOne(McoAdminDemandApproval::class, 'req_no', 'req_no'); - } - - - // Custom accessor to get row from the table in mco_scale->table_name
Added / After Commit
+ { + return $this->hasOne(McoAdminDemandApproval::class, 'req_no', 'req_no'); + } + public function mcoSubmission() + { + return $this->hasOne(McoSubmission::class, 'req_no', 'req_no'); + } + + + + + // Custom accessor to get row from the table in mco_scale->table_name
Removed / Before Commit
- 'estimate_amount', - 'nac_id', - 'lpr_no', - // new fields - 'rate_negotiation', - 'bid_rate',
Added / After Commit
+ 'estimate_amount', + 'nac_id', + 'lpr_no', + 'qty_approved', + // new fields + 'rate_negotiation', + 'bid_rate',
Removed / Before Commit
- @php - $percentage = $val; - @endphp - @elseif($key == 'authorization') - @php - $authorization = $val; - ->sum('qty_demanded'); - @endphp - @php - $maxQty = max(0, $authorization - $total_qty_demand); // prevent negative - @endphp - <td> - {{$job_qty_demand}} - class="form-control form-control-sm qty-required-input" - style="width: 80px;" - placeholder="Qty" - min="1" - max="{{$maxQty}}"
Added / After Commit
+ @php + $percentage = $val; + @endphp + @elseif($key == 'no_off') + @php + $no_off = $val; + @endphp + <td>{{ $no_off }}</td> + @elseif($key == 'authorization') + @php + $authorization = $val; + ->sum('qty_demanded'); + @endphp + @php + $maxQty = max(0, $newAuthorization - $total_qty_demand); // prevent negative + + if(($no_off - $job_qty_demand) < $maxQty) + {
Removed / Before Commit
- <div class="card"> - <div class="card-body"> - <div class="container-fluid"> - - @if($cartItems->isEmpty()) - <p>No items in cart.</p>
Added / After Commit
+ <div class="card"> + <div class="card-body"> + <div class="container-fluid"> + @php + $equipment = \App\Models\WorkEquipment::with(['Equipments', 'group', 'RepairClass']) + ->find($cartItems[0]->work_equipment_id); + @endphp + + <div class="d-flex flex-wrap align-items-center mb-3"> + <div class="me-3"><strong>Eqpt:</strong> {{ $equipment->Equipments?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Registration No:</strong> {{ $cartItems[0]?->mcoDemand?->registation_no ?? 'N/A' }}</div> + <div class="me-3"><strong>Job No:</strong> {{ $cartItems[0]->job_no }}</div> + <div class="me-3"><strong>Class:</strong> {{ $equipment->RepairClass?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Group:</strong> {{ $equipment->group->name ?? 'N/A' }}</div> + </div> + + @if($cartItems->isEmpty()) + <p>No items in cart.</p>
Removed / Before Commit
- display: flex; - align-items: center; - } - </style> - @if ($errors->any()) - <div class="alert alert-danger"> - <div class="row align-items-center"> - <div class="col-md-5"> - <h4><b>Receipt of Spare (MCO)</b></h4> - - </div> - <div class="col-md-7"> - <div class="row align-items-end"> - {{-- Control Number --}} - <div class="col-md-4"></div> - <div class="col-md-4"> - - </div>
Added / After Commit
+ display: flex; + align-items: center; + } + .cancelBtn{ + background:black; + color:white; + } + </style> + @if ($errors->any()) + <div class="alert alert-danger"> + <div class="row align-items-center"> + <div class="col-md-5"> + <h4><b>Receipt of Spare (MCO)</b></h4> + </div> + <div class="col-md-7"> + <div class="row align-items-end"> + + {{-- Empty space --}}
Removed / Before Commit
- @endforelse - </tbody> - </table> - </div> - </div> - </div> - </div> - @endsection - @section('scripts') - <meta name="csrf-token" content="{{ csrf_token() }}"> - <script> - document.addEventListener('DOMContentLoaded', function () { - const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content'); - - document.querySelectorAll('.editable').forEach(input => { - const max = parseInt(input.dataset.max) || Infinity; - const min = parseInt(input.dataset.min) || 0; -
Added / After Commit
+ @endforelse + </tbody> + </table> + <button id="submit" class="btn btn-primary">Submit</button> + </div> + </div> + </div> + </div> + @endsection + @section('scripts') + <script> + $(document).ready(function() { + // Auto-fill inputs with max values + $('.editable').each(function() { + const $input = $(this); + const max = parseInt($input.data('max')) || 0; + const min = parseInt($input.data('min')) || 1; +
Removed / Before Commit
- - <div class="d-flex flex-wrap align-items-center mb-3"> - <div class="me-3"><strong>Eqpt:</strong> {{ $equipment->Equipments?->name ?? 'N/A' }}</div> - <div class="me-3"><strong>Job No:</strong> {{ $demands[0]->job_no }}</div> - <div class="me-3"><strong>Class:</strong> {{ $equipment->RepairClass?->name ?? 'N/A' }}</div> - <div class="me-3"><strong>Group:</strong> {{ $equipment->group->name ?? 'N/A' }}</div> - @if($equipment->repair_class == '4') - - @php - - $noof = $scalenos?->no_of_items ?? 0; - $nooff = $scale->no_off ?? 0; - $totalneeded = $noof * $nooff; - - $per = $totalneeded > 0 ? ($scale->authorization / $totalneeded) * 100 : 0; - @endphp - - <td>{{$per}}</td>
Added / After Commit
+ + <div class="d-flex flex-wrap align-items-center mb-3"> + <div class="me-3"><strong>Eqpt:</strong> {{ $equipment->Equipments?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Registration No:</strong> {{ $demands[0]->registation_no ?? 'N/A' }}</div> + <div class="me-3"><strong>Job No:</strong> {{ $demands[0]->job_no }}</div> + <div class="me-3"><strong>Class:</strong> {{ $equipment->RepairClass?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Group:</strong> {{ $equipment->group->name ?? 'N/A' }}</div> + @if($equipment->repair_class == '4') + + @php + + $noof = $scalenos?->no_of_items ?? 0; + $nooff = $scale->no_off ?? 0; + $totalneeded = $noof * $nooff; + + $per = $totalneeded > 0 ? ($scale->authorization / $totalneeded) * 100 : 0; + @endphp +
Removed / Before Commit
- <div class="card"> - <div class="card-header py-3"> - <div class="row align-items-center"> - <div class="col-md-5"> - <h4><b>Requisition (MCO)</b></h4> - </div> - <div class="col-md-7"> - <form method="GET" class="mb-1" id="filterForm"> - <div class="row align-items-end"> - {{-- Control Number --}} - <div class="col-md-4"> - <label for="control_number" class="form-label">Job Number</label> - <select name="job_no" class="form-select select2 auto-submit"> - <option value="">-- Select Job No --</option> - @endforeach - </select> - </div> - <div class="col-md-4">
Added / After Commit
+ <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center"> + <div class="col-md-4"> + <h4><b>Requisition (MCO)</b></h4> + </div> + <div class="col-md-8"> + <form method="GET" action="{{ route('mco.demands.index') }}" class="mb-1" id="filterForm"> + <div class="row align-items-end"> + {{-- Control Number --}} + <div class="col-md-2"> + <label for="control_number" class="form-label">Job Number</label> + <select name="job_no" class="form-select select2 auto-submit"> + <option value="">-- Select Job No --</option> + @endforeach + </select> + </div> + <div class="col-md-2">
Removed / Before Commit
- </div> - - <div class="col-md-6 mb-3"> - <label class="form-label">No Of</label> - <input type="number" name="no_of_items" id="no_of_items" class="form-control"> - </div> - </div>
Added / After Commit
+ </div> + + <div class="col-md-6 mb-3"> + <label class="form-label">No. of Eqpt as Per Scale</label> + <input type="number" name="no_of_items" id="no_of_items" class="form-control"> + </div> + </div>
Removed / Before Commit
- <div class="col"> - <div class="card"> - <div class="card-header py-3"> - <div class="row align-items-center"> - <div class="card-header py-3 d-flex justify-content-between align-items-center"> - <!-- Left side: Heading --> - <h4 class="mb-0"><b>Edit Data: {{ $scale->equipment->name }}</b></h4> - - <!-- Right side: Back button --> - <a href="{{ route('mco.scales.index') }}" class="btn btn-secondary"> - ← Back - </a> - </div> - - </div> - </div> - <hr> - <div class="card-body">
Added / After Commit
+ <div class="col"> + <div class="card"> + <div class="card-header py-3"> + <div class="row align-items-center mb-3"> + <!-- Left side: Heading --> + <div class="col-md-6 d-flex align-items-center"> + <h4 class="mb-0"><b>Edit Data: {{ $scale->equipment->name }}</b></h4> + </div> + + <!-- Right side: Filters + Back Button --> + <div class="col-md-6"> + <form method="GET" action="{{ route('mco.scales.data', $scale->id) }}" id="filterForm"> + <div class="row g-2 align-items-end"> + <div class="col-md-3"> + <label class="form-label" for="cos_sec">COS Sec</label> + <select name="cos_sec" class="form-control select2 auto-submit"> + <option value="">-- Select --</option> + @foreach($cosSecs as $cos)
Removed / Before Commit
- </div> - - <div class="col-md-6 mb-3"> - <label><b>No. of Items</b></label> - <input type="number" name="no_of_items" id="no_of_items" value="{{ $scale->no_of_items }}" @if($scale->repair_class_id == 'other') readonly @endif class="form-control"> - </div> - </div>
Added / After Commit
+ </div> + + <div class="col-md-6 mb-3"> + <label><b>No. of Eqpt as Per Scale</b></label> + <input type="number" name="no_of_items" id="no_of_items" value="{{ $scale->no_of_items }}" @if($scale->repair_class_id == 'other') readonly @endif class="form-control"> + </div> + </div>
Removed / Before Commit
- <th>Repair Class</th> - <th>Eqpt Name</th> - <!-- <th>Table Name</th> --> - <th>No of Items</th> - <th>Actions</th> - </tr> - </thead>
Added / After Commit
+ <th>Repair Class</th> + <th>Eqpt Name</th> + <!-- <th>Table Name</th> --> + <th>No of Eqpt as Per Scale</th> + <th>Actions</th> + </tr> + </thead>
Removed / Before Commit
- <h4>MCO LPR Form - Urgency No: {{ $decryptedid }}</h4> - <a href="{{ url('/urgency-mco') }}" class="btn btn-secondary btn-sm">Back</a> - </div> - - <div class="card-body"> - {{-- Pending Items Table --}} - </thead> - <tbody> - @foreach($pendingItems as $index => $item) - @php - $firstUrgency = $item->first(); - $scale = $firstUrgency->scale ?? null; - @endphp - - @if($scale) - <tr class="text-center">
Added / After Commit
+ <h4>MCO LPR Form - Urgency No: {{ $decryptedid }}</h4> + <a href="{{ url('/urgency-mco') }}" class="btn btn-secondary btn-sm">Back</a> + </div> + <div class="container-fluid"> + @php + $equipment = \App\Models\WorkEquipment::with(['Equipments', 'group', 'RepairClass']) + ->find($urgencyMaster->mcodemand->work_equipment_id); + @endphp + + <div class="d-flex flex-wrap align-items-center"> + <div class="me-3"><strong>Eqpt:</strong> {{ $equipment->Equipments?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Registration No:</strong> {{ $urgencyMaster->mcodemand->registation_no ?? 'N/A' }}</div> + <div class="me-3"><strong>Job No:</strong> {{ $urgencyMaster->mcodemand->job_no }}</div> + <div class="me-3"><strong>Class:</strong> {{ $equipment->RepairClass?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Group:</strong> {{ $equipment->group->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Urgency Created Date:</strong> {{ $urgencyMaster?->created_at?->format('d/m/Y') ?? 'N/A' }}</div> + </div> + </div>
Removed / Before Commit
- <tr> - <td>{{ $index + 1 }}</td> - <td>{{ $d->mcodemand->job_no ?? '-' }}</td> - <td>{{ $d->req_no ?? '-' }}</td> - <td>{{ $d->id ?? '-' }}</td> - <td><small style="color:blue">{{ $d->nacStatus() }}</small></td> - <td> - {{-- LPR Icon --}} - <a href="{{ route('urgency.lpr.page', encrypt($d->id)) }}" - title="Generate LPR"> - <i class="fa fa-file-alt" style="color: green; background: white"></i> - </a> - - {{-- NAC Icon (tabhi dikhana jab LPR complete ho chuka ho) --}} - @if($d->isLprCompleted()) - <a href="{{ route('urgency.nac.page', encrypt($d->id)) }}" - title="Generate NAC"> - <i class="fa fa-check-circle" style="color: orange; background: white"></i>
Added / After Commit
+ <tr> + <td>{{ $index + 1 }}</td> + <td>{{ $d->mcodemand->job_no ?? '-' }}</td> + <td>{{ $d->req_no ?? '-' }} + @if(!empty($d->mcodemand->created_at)) + ({{ $d->mcodemand->created_at->format('d/m/Y') }}) + @endif + </td> + <td>{{ $d->id ?? '-' }} + @if(!empty($d->created_at)) + ({{ $d->created_at->format('d/m/Y') }}) + @endif + </td> + <td><small style="color:blue">{{ $d->nacStatus() }}</small></td> + <td> + {{-- LPR Icon --}} + <a href="{{ route('urgency.lpr.page', encrypt($d->id)) }}" + class="lpr-icon @if(!empty($d->remark)) disabled-icon @endif"
Removed / Before Commit
- <h4>MCO NAC Form - Urgency No: {{ $decryptedid }}</h4> - <a href="{{ url('/urgency-mco') }}" class="btn btn-secondary btn-sm">Back</a> - </div> - - <div class="card-body"> - @foreach($lprGroups as $lprNo => $items) - <div class="table-responsive mt-3"> - <h5 class="d-flex justify-content-between"> - <span>LPR No: {{ $lprNo }}</span> - @php - $hasNac = $items->first()->nac_id; - $firstItem = $items->first(); - @endphp - @if(!$hasNac) - <button class="btn btn-primary btn-sm" data-bs-toggle="modal" - data-bs-target="#nacModal" data-lpr="{{ $lprNo }}"> - Generate NAC - </button>
Added / After Commit
+ <h4>MCO NAC Form - Urgency No: {{ $decryptedid }}</h4> + <a href="{{ url('/urgency-mco') }}" class="btn btn-secondary btn-sm">Back</a> + </div> + <div class="container-fluid"> + @php + $equipment = \App\Models\WorkEquipment::with(['Equipments', 'group', 'RepairClass']) + ->find($urgencyMaster->mcodemand->work_equipment_id); + @endphp + + <div class="d-flex flex-wrap align-items-center"> + <div class="me-3"><strong>Eqpt:</strong> {{ $equipment->Equipments?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Registration No:</strong> {{ $urgencyMaster->mcodemand->registation_no ?? 'N/A' }}</div> + <div class="me-3"><strong>Job No:</strong> {{ $urgencyMaster->mcodemand->job_no }}</div> + <div class="me-3"><strong>Class:</strong> {{ $equipment->RepairClass?->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Group:</strong> {{ $equipment->group->name ?? 'N/A' }}</div> + <div class="me-3"><strong>Urgency Created Date:</strong> {{ $urgencyMaster?->created_at?->format('d/m/Y') ?? 'N/A' }}</div> + </div> + </div>
Removed / Before Commit
- }); - - - - Route::get('register', [RegisterController::class, 'showRegisterForm'])->name('register'); - Route::post('register', [RegisterController::class, 'register']); - Route::get('login', [LoginController::class, 'showLoginForm'])->name('login'); - Route::prefix('urgency')->group(function () { - Route::get('preview/{req_no}', [UrgencyController::class,'preview'])->name('urgency.preview'); - Route::post('submit', [UrgencyController::class, 'submit'])->name('urgency.submit'); - - }); - Route::get('/urgency-mco', [UrgencyController::class,'mcodata'])->name('urgency.mco'); - Route::get('/urgency-lpo-without-lpr', [UrgencyController::class,'lpodatawithoutlpr'])->name('urgency.lpowithoutlpr'); - Route::get('/urgency-lpo-with-lpr', [UrgencyController::class,'lpodatawithlpr'])->name('urgency.lpowithlpr'); - Route::post('/cases/{case}/gems-details', [UrgencyController::class, 'saveGemsDetails'])->name('cases.saveGemsDetails'); - -
Added / After Commit
+ }); + + + Route::post('/urgency/demand-reject', [UrgencyController::class, 'reject'])->name('urgency.demandreject'); + Route::post('/urgency/updateQtyapproved', [UrgencyController::class, 'updateQty'])->name('urgency.updateQty'); + Route::get('register', [RegisterController::class, 'showRegisterForm'])->name('register'); + Route::post('register', [RegisterController::class, 'register']); + Route::get('login', [LoginController::class, 'showLoginForm'])->name('login'); + Route::prefix('urgency')->group(function () { + Route::get('preview/{req_no}', [UrgencyController::class,'preview'])->name('urgency.preview'); + Route::post('submit', [UrgencyController::class, 'submit'])->name('urgency.submit'); + }); + + Route::get('/urgency-mco', [UrgencyController::class,'mcodata'])->name('urgency.mco'); + Route::get('/urgency-lpo-without-lpr', [UrgencyController::class,'lpodatawithoutlpr'])->name('urgency.lpowithoutlpr'); + Route::get('/urgency-lpo-with-lpr', [UrgencyController::class,'lpodatawithlpr'])->name('urgency.lpowithlpr'); + Route::post('/cases/{case}/gems-details', [UrgencyController::class, 'saveGemsDetails'])->name('cases.saveGemsDetails'); +