'General', 'user_id' => auth()->user()->id, 'user_name' => auth()->user()->name, ]; array_merge($input, $more); $log = new \App\Models\Formlog; $log->form_id = $id; $log->title = $title; $log->category = $input['category']; $log->notes = $notes; $log->user_id = $input['user_id']; $log->user_name = $input['user_name']; $log->save(); } } if (! function_exists('formlogauto')) { function formlogauto($id, $title, $notes, $more = []) { $input = [ 'category' => 'General', ]; array_merge($input, $more); $log = new \App\Models\Formlog; $log->form_id = $id; $log->title = $title; $log->category = $input['category']; $log->notes = $notes; $log->user_id = 0; $log->user_name = 'Automagically'; $log->save(); } } ['pending' => 'Pending', 'inprogress' => 'In Progress', 'completed' => 'Completed'], 'formstatus' => [ 'active' => 'Active', 'sent' => 'Logged', 'hold' => 'On Hold', 'draft' => 'Draft', 'cancelled' => 'Cancelled', 'archived' => 'Archived' ], 'corp' => [ 'booleans' => [ 'sectionsearch', 'sectioncertified', 'sectionreservation', 'sectionname', 'search_names', 'search_copy', 'search_ppr', 'cert_priority', 'cert_goodstanding', 'cert_status', 'cert_underseal', 'cert_copy', 'reg_priority', 'reg_hold', 'res_priority', 'res_bc', 'res_federal', 'res_incorporation', 'res_extraprovincial', 'res_restoration', 'res_continuation', 'res_amalgamation' ] ], 'efiling' => [ 'booleans' => [ 'hold', 'fileon', 'meet', 'prenopre' ] ], 'landsearch' => [ 'booleans' => [ 'obtainlegal', 'obtainassessment', 'obtaintax', 'searchtitle', 'searchname', 'copynonfinancial', 'copyplanlot', 'copyplansrw', 'otherhistorical', 'otherenvironmental', 'othersite', 'vancouver', 'newwestminster', 'victoria', 'kamloops', 'princegeorge', 'princerupert', 'nelson', 'provincewide' ] ], 'mhrppr' => [ 'booleans' => [ 'regpriority', 'reghold', 'regfileon', 'regpost', 'combinemhrppr', 'sectionppr', 'sectionmhr' ] ], 'misc' => [ 'booleans' => [ 'bankofcanada', 'bailiff', 'bailiff_lowermainland', 'bailiff_vancouverisland', 'bailiff_kamloops', 'bailiff_fortstjohn', 'bailiff_terrace', 'bailiff_kootenays', 'bailiff_williamslake', 'bailiff_princegeorge', 'cra', 'employmentstandards', 'federalbankruptcy', 'fin', 'firstnation', 'immigrationrefugee', 'mining', 'residentialtenancy', 'vehicles', 'workerscompensation', 'other' ] ], 'court' => [ 'booleans' => [ 'search', 'copy', 'file', 'efile', 'locate', 'serve', 'provincewidesupreme', 'provincewideprovincial', 'provincewidebankruptcy', 'federal', 'probate', 'smallclaims', 'civil', 'chambers', 'criminal', 'divorce', 'family', 'trial', 'affcertofservice', 'recordsoffice', 'female', 'male', 'cooperative', 'evasive', 'serviceconfirmation', 'personal', 'mailslot', 'post', 'landcpl', 'landjudgement', 'landother' ], 'reg' => [ 'registryprovincial' => [ 'lowermainland' => [ 'abbotsford' => 'Abbotsford', 'chilliwack' => 'Chilliwack', 'newwestminster' => 'New Westminster', 'northvancouver' => 'North Vancouver', 'pemberton' => 'Pemberton', 'portcoquitlam' => 'Port Coquitlam', 'richmond' => 'Richmond', 'robsonsquare' => 'Robson Square', 'sechelt' => 'Sechelt', 'surrey' => 'Surrey', 'vancouvercriminal' => 'Vancouver Criminal', 'vancouverprovincial' => 'Vancouver Provincial' ], 'vancouverisland' => [ 'campbellriver' => 'Campbell River', 'courtenay' => 'Courtenay', 'duncan' => 'Duncan', 'nanaimo' => 'Nanaimo', 'portalberni' => 'Port Alberni', 'porthardy' => 'Port Hardy', 'powellriver' => 'Powell River', 'victoria' => 'Victoria', 'westerncommunities' => 'Western Communities' ], 'kamloopskootenay' => [ 'clearwater' => 'Clearwater', 'cranbrook' => 'Cranbrook', 'golden' => 'Golden', 'kamloops' => 'Kamloops', 'kelowna' => 'Kelowna', 'nakusp' => 'Nakusp', 'nelson' => 'Nelson', 'penticton' => 'Penticton', 'rossland' => 'Rossland', 'salmonarm' => 'Salmon Arm', 'vernon' => 'Vernon' ], 'northern' => [ 'atlin' => 'Atlin', 'burnslake' => 'Burns Lake', 'dawsoncreek' => 'Dawson Creek', 'fortnelson' => 'Fort Nelson', 'fortstjohn' => 'Fort St. John', 'mackenzie' => 'Mackenzie', 'princegeorge' => 'Prince George', 'princerupert' => 'Prince Rupert', 'quesnel' => 'Quesnel', 'smithers' => 'Smithers', 'terrace' => 'Terrace', 'valemount' => 'Valemount', 'williamslake' => 'Williams Lake' ] ], 'registrysupreme' => [ 'lowermainland' => [ 'chilliwack' => 'Chilliwack', 'newwestminster' => 'New Westminster', 'vancouver' => 'Vancouver' ], 'vancouverisland' => [ 'campbellriver' => 'Campbell River', 'courtenay' => 'Courtenay', 'duncan' => 'Duncan', 'nanaimo' => 'Nanaimo', 'portalberni' => 'Port Alberni', 'powellriver' => 'Powell River', 'victoria' => 'Victoria' ], 'kamloopskootenay' => [ 'clearwater' => 'Clearwater', 'cranbrook' => 'Cranbrook', 'golden' => 'Golden', 'kamloops' => 'Kamloops', 'kelowna' => 'Kelowna', 'nakusp' => 'Nakusp', 'nelson' => 'Nelson', 'penticton' => 'Penticton', 'rossland' => 'Rossland', 'salmonarm' => 'Salmon Arm', 'vernon' => 'Vernon' ], 'northern' => [ 'dawsoncreek' => 'Dawson Creek', 'fortnelson' => 'Fort Nelson', 'fortstjohn' => 'Fort St. John', 'princegeorge' => 'Prince George', 'princerupert' => 'Prince Rupert', 'quesnel' => 'Quesnel', 'smithers' => 'Smithers', 'terrace' => 'Terrace', 'williamslake' => 'Williams Lake' ] ], 'registrybankruptcy' => [ 'all' => [ 'victoria' => 'Victoria', 'vancouver' => 'Vancouver', 'nelson' => 'Nelson', 'vernon' => 'Vernon', 'princegeorge' => 'Prince George', 'princerupert' => 'Prince Rupert', ] ], 'registryappeal' => [ 'all' => [ 'vancouver' => 'Vancouver', 'whitehorse' => 'Whitehorse YK' ] ] ] ], 'pickup' => [ 'booleans' => [ ] ], ];