/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $my_groups = Customer::where('id', $this->my_customer_id)->first()->groups()->where('active', '1')->get(); $products = Product::where('active', '1')->get(); $severities = Severity::orderBy('priority_order')->orderBy('name')->get(); return view('layouts.ticket.new', ['my_groups' => $my_groups, 'products' => $products, 'severities' => $severities]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $severities = Severity::orderBy('priority_order')->orderBy('name')->get(); return view('layouts.severity.index', ['severities' => $severities, 'my_permissions' => $this->my_permissions]); }