@php



$cholangiogram_location[] = "None";
    $cholangiogram_location[] = "Ampulla";
    $cholangiogram_location[] = "Bt. IHD Duct";
    $cholangiogram_location[] = "CBD/CHD";
    $cholangiogram_location[] = "Cystic Duct";
    $cholangiogram_location[] = "Distal CBD";
    $cholangiogram_location[] = "Gallbladder";
    $cholangiogram_location[] = "Hilar";
    $cholangiogram_location[] = "Lt. Main";
    $cholangiogram_location[] = "Passing Stone";
    $cholangiogram_location[] = "Rt. Main";
    $cholangiogram_location[] = "Seq. I";
    $cholangiogram_location[] = "Seq. II";
    $cholangiogram_location[] = "Seq. III";
    $cholangiogram_location[] = "Seq. IVa";
    $cholangiogram_location[] = "Seq. IVb";
    $cholangiogram_location[] = "Seq. V";
    $cholangiogram_location[] = "Seq. VI";
    $cholangiogram_location[] = "Seq. VII";
    $cholangiogram_location[] = "Seq. VIII";
    $cholangiogram_location[] = "Skin Tract";




    $cholangiogram_unit[] = "None";
    $cholangiogram_unit[] = "fr";
    $cholangiogram_unit[] = "mm";
    $cholangiogram_unit[] = "cc";


    $cholangiogram_litho[] = "None";
    $cholangiogram_litho[] = "Soft Wire Basket";
    $cholangiogram_litho[] = "Hard Wire Basket";
    $cholangiogram_litho[] = "EHL";
    $cholangiogram_litho[] = "Laser";


    $cholangiogram_stoneextrac[] = "None";
    $cholangiogram_stoneextrac[] = "Ballon";
    $cholangiogram_stoneextrac[] = "Basket";


    $cholangiogram_outcome[] = 'None';
    $cholangiogram_outcome[] = 'Success';
    $cholangiogram_outcome[] = 'Fail';



    $cholangiogram_compli[] = "None";
    $cholangiogram_compli[] = "Bleeding (Massive)";
    $cholangiogram_compli[] = "Bleeding (Minimal)";
    $cholangiogram_compli[] = "Perforation (Scope)";
    $cholangiogram_compli[] = "Perforation (Guidewire)";
    $cholangiogram_compli[] = "Bleeding (Delay)";
    $cholangiogram_compli[] = "Basket Entrapment";
    $cholangiogram_compli[] = "Leakage";


    $cholangiogram_commanage[] = "None";
    $cholangiogram_commanage[] = "Biopsy";
    $cholangiogram_commanage[] = "Observation";
    $cholangiogram_commanage[] = "Adrenalin Injection";
    $cholangiogram_commanage[] = "APC";
    $cholangiogram_commanage[] = "Balloon Temponade";
    $cholangiogram_commanage[] = "Clip";
    $cholangiogram_commanage[] = "Dilate (Balloon)";
    $cholangiogram_commanage[] = "Dilate (Machanical)";
    $cholangiogram_commanage[] = "Emergency Rescue Lithotriptor";
    $cholangiogram_commanage[] = "EMR";
    $cholangiogram_commanage[] = "Endoloop";
    $cholangiogram_commanage[] = "Endoscopic Necrosectomy/Debridement";
    $cholangiogram_commanage[] = "Endoscopic Vaccuum";
    $cholangiogram_commanage[] = "ESD";
    $cholangiogram_commanage[] = "Full Thickeness Resection";
    $cholangiogram_commanage[] = "Glue Injection";
    $cholangiogram_commanage[] = "Gold Probe";
    $cholangiogram_commanage[] = "Hemospray";
    $cholangiogram_commanage[] = "Injection : ICG";
    $cholangiogram_commanage[] = "Mesh";
    $cholangiogram_commanage[] = "Metalic Stent";
    $cholangiogram_commanage[] = "NG";
    $cholangiogram_commanage[] = "OVESCO";
    $cholangiogram_commanage[] = "Penrose Drain Placement";
    $cholangiogram_commanage[] = "Plastic Stent";
    $cholangiogram_commanage[] = "Re-Stenting";
    $cholangiogram_commanage[] = "Rectal Tube";
    $cholangiogram_commanage[] = "Remove Foreign Body";
    $cholangiogram_commanage[] = "Rubber Band";
    $cholangiogram_commanage[] = "Sclerosing Injection";
    $cholangiogram_commanage[] = "Snare tip";
    $cholangiogram_commanage[] = "Tattooing";


    $cholangiogram_pdlocation[] = "Head";
    $cholangiogram_pdlocation[] = "Neck";
    $cholangiogram_pdlocation[] = "Body";
    $cholangiogram_pdlocation[] = "Tail";
    $cholangiogram_pdlocation[] = "Uncinate";
    $cholangiogram_pdlocation[] = "Major Duct";
    $cholangiogram_pdlocation[] = "Minor Duct";

    $cholangiogram_pdunit[] = "fr";
    $cholangiogram_pdunit[] = "mm";
    $cholangiogram_pdunit[] = "cm";


    $cholangiogram_pdlitho[] = "None";
    $cholangiogram_pdlitho[] = "Soft Wire Basket";
    $cholangiogram_pdlitho[] = "Hard Wire Basket";
    $cholangiogram_pdlitho[] = "EHL";
    $cholangiogram_pdlitho[] = "Laser";

    $cholangiogram_pdstone[] = "None";
    $cholangiogram_pdstone[] = "Ballon";
    $cholangiogram_pdstone[] = "Basket";

    $cholangiogram_pdoutcome[] = "None";
    $cholangiogram_pdoutcome[] = "Success";
    $cholangiogram_pdoutcome[] = "Fail";




    $cholangiogram_pdcomplication[] = "None";
    $cholangiogram_pdcomplication[] = "Bleeding (Massive)";
    $cholangiogram_pdcomplication[] = "Bleeding (Minimal)";
    $cholangiogram_pdcomplication[] = "Perforation (Scope)";
    $cholangiogram_pdcomplication[] = "Perforation (Guidewire)";
    $cholangiogram_pdcomplication[] = "Bleeding (Delay)";
    $cholangiogram_pdcomplication[] = "Basket_Entrapment";
    $cholangiogram_pdcomplication[] = "Leakage";

    $cholangiogram_pdcommanage[] = "None";
    $cholangiogram_pdcommanage[] = "Biopsy";
    $cholangiogram_pdcommanage[] = "Dilate (Balloon)";
    $cholangiogram_pdcommanage[] = "Dilate (Machanical)";
    $cholangiogram_pdcommanage[] = "EMR";
    $cholangiogram_pdcommanage[] = "Endoscopic Vaccuum";
    $cholangiogram_pdcommanage[] = "ESD";
    $cholangiogram_pdcommanage[] = "Explore-lap";
    $cholangiogram_pdcommanage[] = "Full Thickeness Resection";
    $cholangiogram_pdcommanage[] = "Injection : ICG";
    $cholangiogram_pdcommanage[] = "Laparoscopy";
    $cholangiogram_pdcommanage[] = "Mesh";
    $cholangiogram_pdcommanage[] = "Penrose Drain Placement";
    $cholangiogram_pdcommanage[] = "Polypectomy (Biopsy Forcep)";
    $cholangiogram_pdcommanage[] = "Polypectomy (Cold Snare)";
    $cholangiogram_pdcommanage[] = "Polypectomy (Hot Snare)";
    $cholangiogram_pdcommanage[] = "Polypectomy (Piecemeal)";
    $cholangiogram_pdcommanage[] = "Polypectomy (Under Water)";
    $cholangiogram_pdcommanage[] = "Rectal Tube";
    $cholangiogram_pdcommanage[] = "Refer";
    $cholangiogram_pdcommanage[] = "Tattooing";
@endphp


<div class="add_cholan" style="display: none;">
    <div class="row  px-3 advance">
        <div class="row p-2">
            <div class="col-lg-8 ">
                <div class="row">
                    <div class="col-3">
                        {!! selectadvanced('cholangiogram_location_g1', $cholangiogram_location, $save ?? '') !!}
                    </div>
                    <div class="col-2">
                        <input type="text" name="cholangiogram_size_g1[]" id="" class="form-control">

                    </div>
                    <div class="col-2">
                        {!! selectadvanced('cholangiogram_unit_g1', $cholangiogram_unit, $save ?? '') !!}

                    </div>
                    <div class="col-2">

                        {!! selectadvanced('cholangiogram_litho_g1', $cholangiogram_litho, $save ?? '') !!}






                    </div>
                    <div class="col-3">
                        {!! selectadvanced('cholangiogram_stoneextrac_g1', $cholangiogram_stoneextrac, $save ?? '') !!}


                    </div>
                </div>
            </div>
            <div class="col-lg-4 ">
                <div class="row">
                    <div class="col-4">
                        {!! selectadvanced('cholangiogram_outcome_g1', $cholangiogram_outcome, $save ?? '') !!}

                    </div>
                    <div class="col-4">
                        {!! selectadvanced('cholangiogram_compli_g1', $cholangiogram_compli, $save ?? '') !!}

                    </div>
                    <div class="col-3">
                        {!! selectadvanced('cholangiogram_commanage_g1', $cholangiogram_commanage, $save ?? '') !!}

                        {{-- <select name="cholangiogram_commanage[]" id="" class="form-select ">
                            <option value="">Select</option>
                            <option value="None">None</option>
                            <option value="Biopsy">Biopsy</option>
                            <option value="Observation">Observation</option>
                            <option value="Adrenalin Injection">Adrenalin Injection</option>
                            <option value="APC">APC</option>
                            <option value="Balloon Temponade">Balloon Temponade</option>
                            <option value="Clip">Clip</option>
                            <option value="Dilate (Balloon)">Dilate (Balloon)</option>
                            <option value="Dilate (Machanical)">Dilate (Machanical)</option>
                            <option value="Emergency Rescue Lithotriptor">Emergency Rescue Lithotriptor
                            </option>
                            <option value="EMR">EMR</option>
                            <option value="Endoloop">Endoloop</option>
                            <option value="Endoscopic Necrosectomy/Debridement">Endoscopic
                                Necrosectomy/Debridement</option>
                            <option value="Endoscopic Vaccuum">Endoscopic Vaccuum</option>
                            <option value="ESD">ESD</option>
                            <option value="Full Thickeness Resection">Full Thickeness Resection</option>
                            <option value="Glue Injection">Glue Injection</option>
                            <option value="Gold Probe">Gold Probe</option>
                            <option value="Hemospray">Hemospray</option>
                            <option value="Injection : ICG">Injection : ICG</option>
                            <option value="Mesh">Mesh</option>
                            <option value="Metalic Stent">Metalic Stent</option>
                            <option value="NG">NG</option>
                            <option value="OVESCO">OVESCO</option>
                            <option value="Penrose Drain Placement">Penrose Drain Placement</option>
                            <option value="Plastic Stent">Plastic Stent</option>
                            <option value="Re-Stenting">Re-Stenting</option>
                            <option value="Rectal Tube">Rectal Tube</option>
                            <option value="Remove Foreign Body">Remove Foreign Body</option>
                            <option value="Rubber Band">Rubber Band</option>
                            <option value="Sclerosing Injection">Sclerosing Injection</option>
                            <option value="Snare tip">Snare tip</option>
                            <option value="Tattooing">Tattooing</option>
                        </select> --}}

                    </div>
                    <div class="col-1 align-self-center">
                        <a type="button" class="btn-transparent btn-danger btn-cancel remove" ><i
                            class="ri-indeterminate-circle-fill ri-lg"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="add_cholan1" style="display: none;">
    <div class="row  px-3 advance">
        <div class="row p-2">
            <div class="col-lg-8 ">
                <div class="row">
                    <div class="col-3">
                        {!! selectadvanced('cholangiogram_pdlocation_g2', $cholangiogram_pdlocation, $save ?? '') !!}


                    </div>
                    <div class="col-2">
                        <input name="cholangiogram_txtsize_g2[]" type="text" class="form-control">

                    </div>
                    <div class="col-2">
                        {!! selectadvanced('cholangiogram_pdunit_g2', $cholangiogram_pdunit, $save ?? '') !!}


                    </div>
                    <div class="col-2">
                        {!! selectadvanced('cholangiogram_pdlitho_g2', $cholangiogram_pdlitho, $save ?? '') !!}


                    </div>
                    <div class="col-3">
                        {!! selectadvanced('cholangiogram_pdstone_g2', $cholangiogram_pdstone, $save ?? '') !!}

                        {{-- <select name="cholangiogram_pdstone[]" id="" class="form-select">
                            <option value="">Select</option>
                            <option value="">None</option>
                            <option value="">Ballon</option>
                            <option value="">Basket</option>

                        </select> --}}

                    </div>
                </div>
            </div>
            <div class="col-lg-4 ">
                <div class="row">
                    <div class="col-4">
                        {!! selectadvanced('cholangiogram_pdoutcome_g2', $cholangiogram_pdoutcome, $save ?? '') !!}
{{--
                        <select name="cholangiogram_pdoutcome[]" id="" class="form-select">
                            <option value="">Select</option>
                            <option value="">None</option>
                            <option value="">Success</option>
                            <option value="">Fail</option>
                        </select> --}}
                    </div>
                    <div class="col-4">
                        {!! selectadvanced('cholangiogram_pdcomplication_g2', $cholangiogram_pdcomplication, $save ?? '') !!}

                    </div>
                    <div class="col-3">

                        {!! selectadvanced('cholangiogram_pdcommanage_g2', $cholangiogram_pdcommanage, $save ?? '') !!}


                        {{-- <select name="cholangiogram_pdcommanage[]" id="" class="form-select ">
                            <option value="">Select</option>
                            <option value="None">None</option>
                            <option value="Biopsy">Biopsy</option>
                            <option value="Dilate (Balloon)">Dilate (Balloon)</option>
                            <option value="Dilate (Machanical)">Dilate (Machanical)</option>
                            <option value="EMR">EMR</option>
                            <option value="Endoscopic Vaccuum">Endoscopic Vaccuum</option>
                            <option value="ESD">ESD</option>
                            <option value="Explore-lap">Explore-lap</option>
                            <option value="Full Thickeness Resection">Full Thickeness Resection
                            </option>
                            <option value="Injection : ICG">Injection : ICG</option>
                            <option value="Laparoscopy">Laparoscopy</option>
                            <option value="Mesh">Mesh</option>
                            <option value="Penrose Drain Placement">Penrose Drain Placement
                            </option>
                            <option value="Polypectomy (Biopsy Forcep)">Polypectomy (Biopsy Forcep)
                            </option>
                            <option value="Polypectomy (Cold Snare)">Polypectomy (Cold Snare)
                            </option>
                            <option value="Polypectomy (Hot Snare)">Polypectomy (Hot Snare)
                            </option>
                            <option value="Polypectomy (Piecemeal)">Polypectomy (Piecemeal)
                            </option>
                            <option value="Polypectomy (Under Water)">Polypectomy (Under Water)
                            </option>
                            <option value="Rectal Tube">Rectal Tube</option>
                            <option value="Refer">Refer</option>
                            <option value="Tattooing">Tattooing</option>
                        </select> --}}
                    </div>
                    <div class="col-1 align-self-center">
                        <a type="button" class="btn-transparent btn-danger btn-cancel remove" ><i
                            class="ri-indeterminate-circle-fill ri-lg"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
