<form class="rounded" action="{{ route('patients.view.set-default-company-client', $patient) }}" method="POST">
    @csrf
    <select name="companyClientUid" class="form-control" onchange="this.form.submit()">
        <option value=""></option>
        @foreach ($patient->companyClients as $companyClient)
            <option value="{{ $companyClient->uid }}"
                <?= @$defaultCompanyClient->uid === $companyClient->uid ? 'selected' : '' ?>>
                {{ $companyClient->company->name }}</option>
        @endforeach
    </select>
</form>
