public function create($workOrderId)
    {
        try {
            return $this->processor->create($workOrderId);
        } catch (ReportExistsException $e) {
            flash()->error('Error!', 'This work order already has already been completed.');

            return redirect()->route('maintenance.work-orders.show', [$workOrderId]);
        }
    }
public function create($workOrderId)
    {
        try {
            return $this->processor->create($workOrderId);
        } catch (ReportExistsException $e) {
            flash()->error('Error!', 'This work order already has already been completed.');

            return redirect()->route('maintenance.work-orders.show', [$workOrderId]);
        }
    }
public function create ( $ workOrderId ) { try { return $ this -> processor -> create ( $ workOrderId ) ; } catch ( ReportExistsException $ e ) { flash ( ) -> error ( 'Error!' , 'This work order already has already been completed.' ) ; return redirect ( ) -> route ( 'maintenance.work-orders.show' , [ $ workOrderId ] ) ; } }
Displays the form for creating a report
for the specified work order.

@param int|string $workOrderId

@return \Illuminate\View\View
Displays the form for creating a report for the specified work order .