<?php

namespace App\Console\Commands;

use App\Models\Institution\Institution;
use Illuminate\Console\Command;

class ImportInstitutions extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'import:institutions';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        foreach([
                    "careSettingName",
                    "Aberlour Children’s Home (30 Quarry Hill, Keith)",
                    "Aberlour Orphanage, Aberlour",
                    "Algrade, Humbie",
                    "Balcary, Hawick",
                    "Balgowan List D School, Dundee",
                    "Ballikinrain School",
                    "Balnacraig School, Perth",
                    "Balrossie School",
                    "Barlinnie Young Offenders Institution",
                    "Barrholm Children’s Home, Largs",
                    "Beechwood Girls Remand Home",
                    "Bellfield Remand Home",
                    "Bellshill Children’s Home",
                    "Bellvue House, Rutherglen",
                    "Blackford Road/South Oswald Road, Edinburgh",
                    "Brimmond Assessment Centre",
                    "Burnside Remand Centre",
                    "Bushy Hills Remand Centre",
                    "Calder House - Calder Remand Home",
                    "Cardross Park Assessment Centre",
                    "Carlekemp School, North Berwick",
                    "Clerwood Children’s Home",
                    "Coblehaugh Children’s Home, Inverurie",
                    "Colonsay House, Perth",
                    "Craigerne, Peebles",
                    "Creagdhu ",
                    "Crosshill",
                    "Crossreach",
                    "Cruachan",
                    "Dean House Children’s Home, Edinburgh",
                    "Donaldson’s School for Deaf Children",
                    "Downcraig, Castlemilk",
                    "Dr Guthrie’s List D School, Edinburgh",
                    "Dunclutha Children’s Home, Dunoon",
                    "Establishments in Colinton, Edinburgh",
                    "Eversley Children’s Home, Pollokshields",
                    "Falkland House",
                    "Ferniehill Children's Home",
                    "Fettes College",
                    "Fort Augustus Abbey School",
                    "Geilsland Residential School",
                    "Glasclune, North Berwick",
                    "Glenallan Children’s Home",
                    "Glenochil Young Offenders Institution",
                    "Glenpark",
                    "Good Shepherd",
                    "Good Shepherd",
                    "Good Shepherd",
                    "Gordonstoun",
                    "Greenview ",
                    "Gryffe Children’s Home, Bridge of Weir",
                    "Harmeny School, Edinburgh",
                    "Hill Park Children’s Home, Hardgate",
                    "Hillside Children's home",
                    "Howdenhall Centre/ St Katherine's secure unit",
                    "Keil School, Dumbarton",
                    "Kenmure St Mary’s Boys’ School, Bishopbriggs",
                    "Kerelaw Secure Unit",
                    "Kibble",
                    "Kiplings House ",
                    "Kirklands House",
                    "Kirknowe",
                    "Ladyfield West Children’s Hospital, Dumfries",
                    "Lagarie House Children’s Home, Rhu",
                    "Langlands Park (until 1985)",
                    "Langlands Park Secure Unit (from 1985)",
                    "Larchgrove Remand Home",
                    "Lawmuir Residential School",
                    "Lendrick Muir Residental School",
                    "Lennox Castle Hospital, Lennoxtown, Glasgow",
                    "Linwood Hall Children’s Home, Leven",
                    "Loaningdale List D School",
                    "Longriggend Detention Centre, Airdrie",
                    "Loretto School",
                    "Merchiston Castle School",
                    "Merkland Children’s Home, Moffat",
                    "Morrison’s Academy (at the time it was a boarding school)",
                    "Nazareth House, Aberdeen",
                    "Nazareth House, Cardonald",
                    "Nazareth House, Kilmarnock",
                    "Nazareth House, Lasswade",
                    "Nimmo Place Children’s Home, Perth",
                    "Oakbank, Aberdeen",
                    "Ovenstone Residential School, Pittenweem, Fife",
                    "Overbridge",
                    "Park Lodge, Calderwood Road, Glasgow",
                    "Polmont Young Offenders Institution",
                    "Quarriers Village",
                    "Queen Victoria School, Dunblane",
                    "Rannoch Mhor, Strathmartin Road Dundee",
                    "Red House Home, Musselburgh",
                    "Redheugh Adolescent Unit, Kilbirnie",
                    "Relationship between the Church and residential care of children",
                    "Roseangle Orphanage (St Vincent’s), Dundee",
                    "Rossie [Farm] [List D] School, Montrose",
                    "Rothesay Residental Home",
                    "Royal Blind School",
                    "Royal Scottish National Hospital, Larbert",
                    "School for Girls / Balgay School / Parkview School Approved",
                    "Seafield",
                    "Seafield Aberdeen",
                    "Smyllum Park, Lanark",
                    "Southannan",
                    "St Andrew’s School, Shandon, Dunbartonshire (List D School) ",
                    "St Charles institution",
                    "St Columba’s, Largs",
                    "St Euphrasia’s",
                    "St Gerard's Mother and baby Unit ",
                    "St John Bosco's ",
                    "St John’s Boys’ School, Shettleston",
                    "St Joseph’s Hospital, Rosewell",
                    "St Joseph’s, Dumfries",
                    "St Joseph’s, Tranent",
                    "St Katherine’s Secure Unit / Howdenhall",
                    "St Margaret’s Children’s Home, Elie",
                    "St Mary’s, Balnakiel House, Galashiels",
                    "St Marys",
                    "St Mungo’s, Mauchline, Ayrshire",
                    "St Ninian’s Falkland, Fife",
                    "St Ninians, Gartmore, Stirlingshire",
                    "St Philip’s School, Plains, Airdrie",
                    "St Phillips",
                    "St Vincent’s School for the Deaf/Blind, Tollcross, Glasgow",
                    "Stapleton Towers, Annan, Dumfries",
                    "Starley Hall",
                    "Sycamore House",
                    "The Dowans",
                    "The Good Shepherd Centre, Bishopton",
                    "The Lord and Lady Polwarth Home for Children in Edinburgh",
                    "The St John Bosco School, Aberdour",
                    "The Sycamore Cluster, Fife",
                    "Thornly Park School",
                    "Thorntoun",
                    "Tyneholme, Pencaitland, East Lothian / Tynepark",
                    "Uddingston Childrens Home ",
                    "Wellington School",
                    "Widowers’ Children’s Home, Edinburgh",
                    "Winton Drive, Glasgow",

                ] as $item) {
            Institution::firstOrCreate(['display_name' => ucwords(strtolower(trim($item))), 'institution_type_id' => 1, 'dsar_type_id' => 1]);
        }
    }
}
